serial: caif: hold tty->link reference in ldisc_open and ser_release
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.10.253, Kernel 5.15.203, Kernel 6.1.167 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: serial: caif: hold tty->link reference in ldisc_open and ser_release A reproducer triggers a KASAN slab-use-after-free in pty_write_room() when caif_serial's TX path calls tty_write_room(). The faulting access is on tty->link->port. Hold an extra kref on tty->link for the lifetime of the caif_serial line discipline: get it in ldisc_open() and drop it in ser_release(), and also drop it on the ldisc_open() error path. With this change applied, the reproducer no longer triggers the UAF in my testing.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.35 <5.10.253, >=5.11 <5.15.203, >=5.16 <6.1.167, >=6.13 <6.18.19, >=6.19 <6.19.9, >=6.2 <6.6.130, >=6.7 <6.12.78, =7.0, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <27e43356d0defb9fc7fa25265219a3ffeb7b3e98, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <288598d80a068a0e9281de35bcb4ce495f189e2a, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <35b58d3bc716ebb9ebd10fe1cac8c1177242511c, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <52135420e9f75853ea0c6cea7b736e3e98495f7d, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <8460187b4852fd00bd1c76394358053f3fa4d089, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <97a0bb491cae39478c6225381f14e9ac67b7bba7, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <ca2ceba983bb23ea0202c2882d963253416654a3, =2.6.35, >=e31d5a05948e4478ba8396063d1e1f39880928e2 <23a3ac2e2262a291498567418227b99e1f3606b1 | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78, 27e43356d0defb9fc7fa25265219a3ffeb7b3e98, 288598d80a068a0e9281de35bcb4ce495f189e2a, 35b58d3bc716ebb9ebd10fe1cac8c1177242511c, 52135420e9f75853ea0c6cea7b736e3e98495f7d, 8460187b4852fd00bd1c76394358053f3fa4d089, 97a0bb491cae39478c6225381f14e9ac67b7bba7, ca2ceba983bb23ea0202c2882d963253416654a3, 23a3ac2e2262a291498567418227b99e1f3606b1 |
| linux-kernel: Kernel | >=2.6.35 <5.10.253, >=5.11.0 <5.15.203, >=5.16.0 <6.1.167, >=6.13.0 <6.18.19, >=6.19.0 <6.19.9, >=6.2.0 <6.6.130, >=6.7.0 <6.12.78 | 5.10.253, 5.15.203, 6.1.167, 6.18.19, 6.19.9, 6.6.130, 6.12.78 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket