nfc: llcp: Fix list corruption / refcount desync in nfc_llcp_recv_dm()
In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: Fix list corruption / refcount desync in nfc_llcp_recv_dm() nfc_llcp_recv_dm() handles DM(NOBOUND)/DM(REJ) for a socket that is still linked on local->connecting_sockets: it looks the socket up with nfc_llcp_connecting_sock_get(), sets sk->sk_state = LLCP_CLOSED and returns, without taking the socket lock and without unlinking the socket from the connecting_sockets list. llcp_sock_release() selects the list to unlink from by sk_state: a socket in LLCP_CONNECTING is unlinked from connecting_sockets, otherwise from the sockets list. Because recv_dm left the socket physically on connecting_sockets but in the LLCP_CLOSED state, release() takes the else branch and calls nfc_llcp_sock_unlink(&local->sockets, sk). That runs sk_del_node_init() while holding sockets.lock, i.e. it removes the socket from the connecting_sockets hlist under the wrong lock. A concurrent connect() linking another socket onto connecting_sockets under connecting_sockets.lock then mutates the same hlist unserialized, which corrupts the list and desyncs the sk_add_node()/sk_del_node_init() sock_hold()/__sock_put() pairing. An unprivileged local process holding LLCP sockets, with the DM supplied by the remote peer over an established LLCP link, can drive this to leak kernel sockets without bound (the mis-decrement goes through the non-freeing __sock_put() path, so the object is never released), leading to memory exhaustion / DoS. Thi
CVE-2026-98581
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-98581
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "dd2d24add86b3b63cd87cf2feff98ae119ba19a6",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "812731dd8511f5768f4ff279b3c18d85cd21da4b",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "dba1d9c7134afcb4b1bfad8c1b1b3f0ab5189b08",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "c1e9ed52a6697354366dddf190fbacee8ed2f7c5",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "7fb2c0eeb79bfad64065f539a453138abd0edda6",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "b94cf09720543cc34256c7aa88f8059cbe7c0419",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "320a2ff49bdce3f9a437b9a9ff341ff27d3bdbf1",
"versionType": "git"
},
{
"status": "affected",
"version": "a69f32af86e389dd232b1bb2269e202c1bfcc60f",
"lessThan": "bf1460acdf8cf5a07c819f59785d40f20d113099",
"versionType": "git"
}
],
"programFiles": [
"net/nfc/llcp_core.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "3.6"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "3.6",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.271",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.222",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.189",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.158",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.112",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.55",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.2.9",
"versionType": "semver",
"lessThanOrEqual": "7.2.*"
},
{
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"net/nfc/llcp_core.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-98581
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #38601 · Revision 1
- Added to Heist Feed
- Publisher date