In the Linux kernel, the following vulnerability has been resolved:
scsi: snic: Fix possible memory leak if device_add() fails
If device_add() returns error, the name allocated by dev_set_name() needs be freed. As the comment of device_add() says, put_device() should be used to give up the reference in the error path. So fix this by calling put_device(), then the name can be freed in kobject_cleanp().
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 4.2 | 4.14.323 |
| linux / linux_kernel | 4.15 | 4.19.292 |
| linux / linux_kernel | 4.20 | 5.4.254 |
| linux / linux_kernel | 5.5 | 5.10.191 |
| linux / linux_kernel | 5.11 | 5.15.127 |
| linux / linux_kernel | 5.16 | 6.1.46 |
| linux / linux_kernel | 6.2 | 6.4.11 |
| linux / linux_kernel | 6.5-rc1 | 6.5-rc1.x |
| linux / linux_kernel | 6.5-rc2 | 6.5-rc2.x |
| linux / linux_kernel | 6.5-rc3 | 6.5-rc3.x |
| linux / linux_kernel | 6.5-rc4 | 6.5-rc4.x |
| linux / linux_kernel | 6.5-rc5 | 6.5-rc5.x |