
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-31545 is a vulnerability in the Linux kernel's NFC nxp-nci driver caused by an improper GPIO sleep constraint that prevents firmware and enable GPIOs from sleeping. This flaw breaks driver operation when GPIOs are connected to I2C GPIO expanders and triggers a kernel WARN_ON in drivers/gpio/gpiolib.c. Affected Linux kernel versions span multiple stable branches: 5.4–5.10 (before 5.10.253), 5.11–5.15 (before 5.15.203), 5.16–6.1 (before 6.1.167), 6.2–6.6 (before 6.6.130), 6.7–6.12 (before 6.12.78), 6.13–6.18 (before 6.18.20), 6.19 (before 6.19.10), and 7.0-rc1 through rc4. It was published on April 24, 2026, and carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat CVE, Feedly).
The root cause is classified as CWE-372 (Incomplete Internal State Distinction): the nxp-nci NFC driver uses gpiod_set_value() instead of gpiod_set_value_cansleep() for firmware and enable GPIO lines, which does not account for GPIOs that may need to sleep (e.g., those routed through I2C GPIO expanders). When such a GPIO is accessed, the kernel's GPIO library (gpiolib.c, line 3880) fires a WARN_ON assertion because the calling context does not permit sleeping. The fix allows the GPIOs to sleep by switching to the appropriate sleep-capable GPIO API calls, enabling correct operation with I2C-connected GPIO expanders (Red Hat CVE, Kernel Patch).
The primary impact is an availability loss affecting NFC functionality on systems where the nxp-nci driver controls GPIOs via I2C GPIO expanders. Exploitation results in a kernel WARNING at gpiod_set_value+0x88/0x98 and driver malfunction, rendering NFC hardware inoperable. There is no confidentiality or integrity impact; the vulnerability is limited to local availability of the NFC subsystem (Feedly, Red Hat CVE).
There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of publication. The vulnerability requires local access (low-privileged user) and is only triggerable on systems with NFC hardware using the nxp-nci driver connected to I2C GPIO expanders. The EPSS score is approximately 0.024% (0.000240), indicating very low likelihood of exploitation. CVE-2026-31545 is not listed in the CISA Known Exploited Vulnerabilities catalog (Feedly).
WARNING: CPU: X PID: XXXX at drivers/gpio/gpiolib.c:3880 gpiod_set_value+0x88/0x98, indicating the WARN_ON has been triggered in the GPIO library.dmesg or /var/log/kern.log referencing the nxp-nci driver and GPIO operations.Update the Linux kernel to a patched version for the applicable stable branch: 5.10.253+ (5.4–5.10), 5.15.203+ (5.11–5.15), 6.1.167+ (5.16–6.1), 6.6.130+ (6.2–6.6), 6.12.78+ (6.7–6.12), 6.18.20+ (6.13–6.18), 6.19.10+ (6.19), or Linux 7.0 and later. Patches are available via the upstream kernel stable tree. Systems without NFC hardware or not using I2C GPIO expanders are not affected and have lower urgency, though updating is still recommended (Red Hat CVE, Kernel Patch).
Fix availability across major Linux distributions and their releases.
bionic
linux
bionic (esm-infra)
linux-hwe-5.4
bionic (fips-updates)
linux-fips
bionic (fips)
linux-fips
devel
linux
focal
linux-azure-fde-5.15
focal (esm-infra)
linux
focal (fips-updates)
linux-fips
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."