CVE-2026-31629
nfc: llcp: add missing return after LLCP_CLOSED checks
Check your servers for CVE-2026-31629
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31629 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
nfc: llcp: add missing return after LLCP_CLOSED checks
In nfc_llcp_recv_hdlc() and nfc_llcp_recv_disc(), when the socket state is LLCP_CLOSED, the code correctly calls release_sock() and nfc_llcp_sock_put() but fails to return. Execution falls through to the remainder of the function, which calls release_sock() and nfc_llcp_sock_put() again. This results in a double release_sock() and a refcount underflow via double nfc_llcp_sock_put(), leading to a use-after-free.
Add the missing return statements after the LLCP_CLOSED branches in both functions to prevent the fall-through.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 19.6% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before b2a23529593d011fb433a3d711fc597ed6a6bd2f affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 665315df9c3486cb213fc44d83cc8bcd47fe0d26 affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6 affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 0eb1263a3b8c36418c9ba295c9ab3abed664edbf affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 796e0cac058252d0ad34ebe288e6f7979b5fc9b2 affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 8977fad2b3c6eefd414131168d597c5d1d5e1abf affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before ff3d9e8f7244293e303f7b6ef70774291c7c27e9 affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before aba4712e8f0381cd5d196534ce2ad082626a5ab6 affected from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, before 2b5dd4632966c39da6ba74dbc8689b309065e82c
Other versions: unaffected
|
| Linux |
affected 3.3 unaffected before 3.3 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.83 up to and including 6.12.* unaffected from 6.18.24 up to and including 6.18.* unaffected from 6.19.14 up to and including 6.19.* unaffected from 7.0.1 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31629 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31629
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31629
trivy image --scanners vuln IMAGE | grep CVE-2026-31629
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b2a23529593d011fb433a3d711fc597ed6a6bd2f git.kernel.org
- https://git.kernel.org/stable/c/665315df9c3486cb213fc44d83cc8bcd47fe0d26 git.kernel.org
- https://git.kernel.org/stable/c/9b49e2a4b8219a2fc5cebf94f4ec34e509aff8a6 git.kernel.org
- https://git.kernel.org/stable/c/0eb1263a3b8c36418c9ba295c9ab3abed664edbf git.kernel.org
- https://git.kernel.org/stable/c/796e0cac058252d0ad34ebe288e6f7979b5fc9b2 git.kernel.org
- https://git.kernel.org/stable/c/8977fad2b3c6eefd414131168d597c5d1d5e1abf git.kernel.org
- https://git.kernel.org/stable/c/ff3d9e8f7244293e303f7b6ef70774291c7c27e9 git.kernel.org
- https://git.kernel.org/stable/c/aba4712e8f0381cd5d196534ce2ad082626a5ab6 git.kernel.org
- https://git.kernel.org/stable/c/2b5dd4632966c39da6ba74dbc8689b309065e82c git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2026-31629 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse