CVE Database›CVE-2025-38416

CVE-2025-38416

kernel: NFC: nci: uart: Set tty->disc_data only in success path

Loading…

Severity

Unknown

Red Hat Product Security

—

CVSS

Review impact separately from score.

Published · July 25, 2025

Updated · October 30, 2026

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().

Statement

This vulnerability does not pose an operational risk to Red Hat environments because the NFC NCI UART line discipline driver is not enabled in Red Hat Enterprise Linux kernels. The issue stems from early state exposure during serial device initialization, which would typically require local access and dedicated NFC hardware to trigger. Consequently, standard installations do not ship or execute the vulnerable code path.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CWE not specified