tty: clear cdev pointer after cdev_add() failure
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: tty: clear cdev pointer after cdev_add() failure tty_cdev_add() drops the cdev reference when cdev_add() fails, but leaves driver->cdevs[index] pointing to freed memory. tty_unregister_device() later passes that stale pointer to cdev_del(), causing a use-after-free. Clear the slot after dropping the reference.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in fb1de260033c215dba438973d82b48562bdc86bb; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in e9e64dd02fd68776afda00777591eca0c3984285; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in 33a44333a9dfda044b0e233399b12ead7f8a90ae; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in d331c63570af61ef7aaf516b64a8d6f47518a3a4; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in a83fcddf3c75d004f12aa13555bb73da19fb75a9; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in 4f6bd79bb7e55095f09bec9b4eb6c09df1306116; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in 5c5a795bf6248fe96f96dd9fd79d66bbb4a92077; From c1a752ba2d6b8a52879c7ab637cff38359ea9827 · fixed in 6645856f0df3aeecd45519cb611415b4b89c2223
- Linux Linux
4.3
- KernelLinux
From 4.3.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/fb1de260033c215dba438973d82b48562bdc86bb
- stable/c/e9e64dd02fd68776afda00777591eca0c3984285
- stable/c/33a44333a9dfda044b0e233399b12ead7f8a90ae
- stable/c/d331c63570af61ef7aaf516b64a8d6f47518a3a4
- stable/c/a83fcddf3c75d004f12aa13555bb73da19fb75a9
- stable/c/4f6bd79bb7e55095f09bec9b4eb6c09df1306116
- stable/c/5c5a795bf6248fe96f96dd9fd79d66bbb4a92077
- stable/c/6645856f0df3aeecd45519cb611415b4b89c2223