vt: stabilize tty reference in kbd_keycode with tty_port_tty_get
- 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.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 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
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: vt: stabilize tty reference in kbd_keycode with tty_port_tty_get kbd_keycode() reads vc->port.tty without acquiring a tty reference, racing against con_shutdown() which clears port.tty under a different lock. Use tty_port_tty_get()/tty_kref_put() to hold a proper reference for the duration the tty pointer is needed.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in b84fd400f80adf4d1c88fbce50ae1cf2f8119e65; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 38400673c9bfb39cfc87539e1a072087e98f4e4f; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in cab5a342f0589334046741006d8a280514f94235; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 38a0aa593ebc275aea6f79534d07f44e43768ce6; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 3f6b1d3fcfc26dc3fc85262f753439df93b055b4; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in b664592e9ba8c47c9e23408db7ba52eb9f946c8a; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in cc4a1a2ce0c58eafd477effb055863935260ddc1; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in e25d47a526939ad44b75f778b8a7500562b84fc1
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.265; From 5.11.0 · fixed in 5.15.216; From 5.16.0 · fixed in 6.1.183; From 6.2.0 · fixed in 6.6.152; From 6.7.0 · fixed in 6.12.104; From 6.13.0 · fixed in 6.18.45; From 6.19.0 · fixed in 7.1.9
References 8
git.kernel.org
- stable/c/b84fd400f80adf4d1c88fbce50ae1cf2f8119e65
- stable/c/38400673c9bfb39cfc87539e1a072087e98f4e4f
- stable/c/cab5a342f0589334046741006d8a280514f94235
- stable/c/38a0aa593ebc275aea6f79534d07f44e43768ce6
- stable/c/3f6b1d3fcfc26dc3fc85262f753439df93b055b4
- stable/c/b664592e9ba8c47c9e23408db7ba52eb9f946c8a
- stable/c/cc4a1a2ce0c58eafd477effb055863935260ddc1
- stable/c/e25d47a526939ad44b75f778b8a7500562b84fc1