nfc: llcp: fix slab-out-of-bounds reads when logging service names
In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix slab-out-of-bounds reads when logging service names nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null- terminated strings to pr_debug() using the %s format specifier. The buffers are allocated via kmemdup() or come from netlink attributes and are not guaranteed to be null-terminated, causing __dynamic_pr_debug() to read beyond the allocated region: KASAN: slab-out-of-bounds Read in __dynamic_pr_debug Fix both call sites by using %.*s with the explicit length to limit the output to the actual length of the string.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.271, 5.15.222, 6.1.189, 6.12.112, 6.18.55, 6.6.158, 7.2.9
- CVEs
- CVE-2026-98576
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 10:23 UTC · Revision 1
Source evidence
nfc: llcp: fix slab-out-of-bounds reads when logging service names
core-osv · Original sourcePublished 18 Oct 2026, 15:18 UTC
In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix slab-out-of-bounds reads when logging service names nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null- terminated strings to pr_debug() using the %s format specifier. The buffers are allocated via kmemdup() or come from netlink attributes and are not guaranteed to be null-terminated, causing __dynamic_pr_debug() to read beyond the allocated region: KASAN: slab-out-of-bounds Read in __dynamic_pr_debug Fix both call sites by using %.*s with the explicit length to limit the output to the actual length of the string.
osv:CVE-2026-98576
Kernel
Fixed versions: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.55, 7.2.9
Complete source record
{
"id": "a34c8da6c586ecf8ed70b2962ad9f943ca8391920bef098ee610b3f97778435e",
"url": "https://osv.dev/vulnerability/CVE-2026-98576",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nfc: llcp: fix slab-out-of-bounds reads when logging service names",
"summary": "In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix slab-out-of-bounds reads when logging service names nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() pass non-null- terminated strings to pr_debug() using the %s format specifier. The buffers are allocated via kmemdup() or come from netlink attributes and are not guaranteed to be null-terminated, causing __dynamic_pr_debug() to read beyond the allocated region: KASAN: slab-out-of-bounds Read in __dynamic_pr_debug Fix both call sites by using %.*s with the explicit length to limit the output to the actual length of the string.",
"evidence": "osv:CVE-2026-98576",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.271",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.222",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.189",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.158",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.112",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.55",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98576",
"aliases": [
"CVE-2026-98576"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "d9b8d8e19b073096d3609bbd60f82148d128b555"
},
{
"fixed": "75f7c5a42fa1483f5912279a749417c284ad708f"
},
{
"fixed": "6d4ca872830e46fcca9c086bf19fa9bd2faf09d2"
},
{
"fixed": "a143f7835faa4fe0178448289feea4f84eeee8d6"
},
{
"fixed": "75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b"
},
{
"fixed": "8afb6c194f5781798d3ab3edf243cf5a24a9d1f9"
},
{
"fixed": "8978dff632519712d1fa432991e1f2e857f90239"
},
{
"fixed": "4262b12277a3e056c95fc49e9c4d7bd97035d16c"
},
{
"fixed": "7dcf371a35632f035baf77bcf2c129165f772ce4"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98576.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.10.0"
},
{
"fixed": "5.10.271"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.222"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.189"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.158"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.112"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.55"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.2.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98576.json"
}
}
],
"modified": "2026-10-28T02:30:27.748917512Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4262b12277a3e056c95fc49e9c4d7bd97035d16c",
"https://git.kernel.org/stable/c/6d4ca872830e46fcca9c086bf19fa9bd2faf09d2",
"https://git.kernel.org/stable/c/75bfd9ef4da2fb49dac1f19880d2ac4ccd07b45b",
"https://git.kernel.org/stable/c/75f7c5a42fa1483f5912279a749417c284ad708f",
"https://git.kernel.org/stable/c/7dcf371a35632f035baf77bcf2c129165f772ce4",
"https://git.kernel.org/stable/c/8978dff632519712d1fa432991e1f2e857f90239",
"https://git.kernel.org/stable/c/8afb6c194f5781798d3ab3edf243cf5a24a9d1f9",
"https://git.kernel.org/stable/c/a143f7835faa4fe0178448289feea4f84eeee8d6",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98576.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98576",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98576.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98576",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 494463,
"published_at": "2026-10-18T15:18:41.629+00:00"
}