NFC: nci: uart: Set tty->disc_data only in success path (Linux Linux)

CVE-2025-38416
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.25 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: NFC: nci: uart: Set tty->disc_data only in success path Setting tty->disc_data before opening the NCI device means we need to clean it up on error paths. This also opens some short window if device starts sending data, even before NCIUARTSETDRIVER IOCTL succeeded (broken hardware?). Close the window by exposing tty->disc_data only on the success path, when opening of the NCI device and try_module_get() succeeds. The code differs in error path in one aspect: tty->disc_data won't be ever assigned thus NULL-ified. This however should not be relevant difference, because of "tty->disc_data=NULL" in nci_uart_tty_open().

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:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
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 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < a514fca2b8e95838a3ba600f31a18fa60b76d893 ; affected 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < 000bfbc6bc334a93fffca8f5aa9583e7b6356cb5 ; affected 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < ac6992f72bd8e22679c1e147ac214de6a7093c23 ; affected 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < dc7722619a9c307e9938d735cf4a2210d3d48dcb ; affected 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < a8acc7080ad55c5402a1b818b3008998247dda87 ; affected 9961127d4bce6325e9a0b0fb105e0c85a6c62cb7 < 55c3dbd8389636161090a2b2b6d2d709b9602e9c
Linux · Linuxaffected 4.2 ; unaffected 0 < 4.2 ; unaffected 5.4.295 ≤ 5.4.* ; unaffected 5.10.239 ≤ 5.10.* ; unaffected 5.15.186 ≤ 5.15.* ; unaffected 6.1.142 ≤ 6.1.*

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