Linux
vt: stabilize tty reference in kbd_keycode with tty_port_tty_get
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b84fd400f80adf4d1c88fbce50ae1cf2f8119e65
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 38400673c9bfb39cfc87539e1a072087e98f4e4f
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cab5a342f0589334046741006d8a280514f94235
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 38a0aa593ebc275aea6f79534d07f44e43768ce6
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 3f6b1d3fcfc26dc3fc85262f753439df93b055b4
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b664592e9ba8c47c9e23408db7ba52eb9f946c8a
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cc4a1a2ce0c58eafd477effb055863935260ddc1
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e25d47a526939ad44b75f778b8a7500562b84fc1
Fixed in b84fd400f80adf4d1c88fbce50ae1cf2f8119e65, 38400673c9bfb39cfc87539e1a072087e98f4e4f, cab5a342f0589334046741006d8a280514f94235, 38a0aa593ebc275aea6f79534d07f44e43768ce6, 3f6b1d3fcfc26dc3fc85262f753439df93b055b4, b664592e9ba8c47c9e23408db7ba52eb9f946c8a, cc4a1a2ce0c58eafd477effb055863935260ddc1, e25d47a526939ad44b75f778b8a7500562b84fc1
- 2.6.12
Fixed in 0, 5.10.265, 5.15.216, 6.1.183, 6.6.152, 6.12.104, 6.18.45, 7.1.9, 7.2
Mitigation
Upgrade Linux to b84fd400f80adf4d1c88fbce50ae1cf2f8119e65 or 38400673c9bfb39cfc87539e1a072087e98f4e4f or cab5a342f0589334046741006d8a280514f94235 or 38a0aa593ebc275aea6f79534d07f44e43768ce6 or 3f6b1d3fcfc26dc3fc85262f753439df93b055b4 or b664592e9ba8c47c9e23408db7ba52eb9f946c8a or cc4a1a2ce0c58eafd477effb055863935260ddc1 or e25d47a526939ad44b75f778b8a7500562b84fc1 or later.
Upgrade Linux to 0 or 5.10.265 or 5.15.216 or 6.1.183 or 6.6.152 or 6.12.104 or 6.18.45 or 7.1.9 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.