In the Linux kernel, the following vulnerability has been resolved: nfc: llcp: fix WKS SAP hijacking via prefix match in nfc_llcp_wks_sap()… (CVE-2026-98577)
Description
A vulnerability in the Linux kernel's NFC LLCP implementation allowed a WKS SAP hijacking due to improper prefix matching in the nfc_llcp_wks_sap() function. The function compared only the length of the service name prefix, enabling shorter service names to match longer WKS strings incorrectly. This issue has been fixed by enforcing an exact length match before performing the string comparison.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's NFC LLCP component contained a vulnerability where the nfc_llcp_wks_sap() function compared only the number of bytes equal to the length of the service name, allowing a short service name (e.g., "u") to match longer WKS strings (e.g., "urn:nfc:sn:snep") via prefix matching. This could lead to WKS SAP hijacking. The fix requires an exact length match before the string comparison to prevent such hijacking.
Potential Impact
This vulnerability could allow an attacker to hijack the WKS SAP by exploiting the prefix matching flaw, potentially causing incorrect service identification or redirection within NFC communications. The exact impact depends on the NFC use case and environment but involves manipulation of NFC service name resolution.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to require exact length matching before string comparison in the nfc_llcp_wks_sap() function. Users should apply the official Linux kernel updates that include this fix. No additional mitigation steps are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-5pvx-6xr7-wr9x
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98577"]
Threat ID: 6ad520af2cdf04f656993ab7
Added to database: 10/18/2026, 19:40:31 UTC
Last enriched: 10/18/2026, 20:49:12 UTC
Last updated: 10/18/2026, 22:08:24 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.