CVE-2026-98576: nfc: llcp: fix slab-out-of-bounds reads when logging service names

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

nfc: llcp: fix slab-out-of-bounds reads when logging service names

nfcllcpwkssap() and nfcllcpbuildsdreqtlv() pass non-null- terminated strings to prdebug() 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 dynamicprdebug() to read beyond the allocated region:

KASAN: slab-out-of-bounds Read in dynamicprdebug

Fix both call sites by using %.s with the explicit length to limit the output to the actual length of the string.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Fix both nfc call sites, nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv(), by replacing %s with %.*s and passing the explicit string length so logging is limited to the allocated buffer.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:18 PM
Data Sourced
via MITRE·03:18 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Frequently Asked Questions

1

What conditions are needed to trigger the out-of-bounds read?

The affected LLCP code must log a service name through nfc_llcp_wks_sap() or nfc_llcp_build_sdreq_tlv(). The issue occurs when those non-null-terminated service-name buffers are passed to pr_debug() with a %s format specifier.

2

How can I verify that a kernel contains the fix?

Check whether both nfc_llcp_wks_sap() and nfc_llcp_build_sdreq_tlv() use a length-limited %.*s format when logging service names. The corrected calls provide the explicit string length rather than relying on null termination.

3

Is the affected data limited to one source of service names?

No. The affected service-name buffers may be allocated with kmemdup() or supplied through netlink attributes, and neither source guarantees null termination.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203