Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: tty: skip cdev_del() when no cdev is registered TTY device registration can fail before a cdev is allocated. Serial core keeps the port so setserial can still use it, and later removal passes the NULL cdev slot to cdev_del(), causing a NULL-pointer dereference. Only delete the cdev when the slot is not NULL.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected a3a10ce3429e5dee623ad5c8407ea58e204fcb0a before ea3d2fae7c1d6492145976553817d22e8ef69a0e; affected a3a10ce3429e5dee623ad5c8407ea58e204fcb0a before 21031bd0d662549412378110c989b164feb6e4be; affected a3a10ce3429e5dee623ad5c8407ea58e204fcb0a before 2af4c46b429907edc8cb069c78fca1d950120b98; affected a3a10ce3429e5dee623ad5c8407ea58e204fcb0a before 3dbf85ef40b6366ba15e882f7536cdc98bea579a; affected a3a10ce3429e5dee623ad5c8407ea58e204fcb0a before c3b5623fd97648f2747444aa8932ae604662df93 |
| Linux / Linux | affected 4.3; unaffected 0 before 4.3; unaffected 6.6.160 through 6.6.*; unaffected 6.12.114 through 6.12.*; unaffected 6.18.57 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/ea3d2fae7c1d6492145976553817d22e8ef69a0e
- https://git.kernel.org/stable/c/21031bd0d662549412378110c989b164feb6e4be
- https://git.kernel.org/stable/c/2af4c46b429907edc8cb069c78fca1d950120b98
- https://git.kernel.org/stable/c/3dbf85ef40b6366ba15e882f7536cdc98bea579a
- https://git.kernel.org/stable/c/c3b5623fd97648f2747444aa8932ae604662df93