serial: caif: hold tty->link reference in ldisc_open and ser_release (Linux Linux)

CVE-2026-43458
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.12 % · percentile 2 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

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.

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected e31d5a05948e4478ba8396063d1e1f39880928e2 < 23a3ac2e2262a291498567418227b99e1f3606b1 ; affected e31d5a05948e4478ba8396063d1e1f39880928e2 < 52135420e9f75853ea0c6cea7b736e3e98495f7d ; affected e31d5a05948e4478ba8396063d1e1f39880928e2 < ca2ceba983bb23ea0202c2882d963253416654a3 ; affected e31d5a05948e4478ba8396063d1e1f39880928e2 < 8460187b4852fd00bd1c76394358053f3fa4d089 ; affected e31d5a05948e4478ba8396063d1e1f39880928e2 < 27e43356d0defb9fc7fa25265219a3ffeb7b3e98 ; affected e31d5a05948e4478ba8396063d1e1f39880928e2 < 35b58d3bc716ebb9ebd10fe1cac8c1177242511c
Linux · Linuxaffected 2.6.35 ; unaffected 0 < 2.6.35 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.167 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD