CVE-2026-98577

nfc: llcp: fix WKS SAP hijacking via prefix match in nfc_llcp_wks_sap()

Published Oct 18, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical impact

The Linux kernel NFC stack contains a flaw in the function that validates Service Access Point (SAP) names. The function only compares the length of the requested service name, allowing a short name such as "u" to match a longer WKS string like "urn:nfc:sn:snep". This mismatch means an attacker could send a crafted NFC LLCP request that hijacks the WKS SAP, thereby gaining control over the NFC link layer and potentially interfering with legitimate NFC communications. The vulnerability is classified as CWE-1025, an improper string comparison that can lead to improper validation of inputs.

Affected Systems

All Linux kernel versions that do not contain the patch that enforces an exact length comparison in nfc_llcp_wks_sap() are affected. The commit that resolves the issue is 0a0412745c86acd089c6460da715ab966b1615e7, and any kernel snapshot prior to its integration is considered vulnerable. Because the CVE data does not list explicit version numbers, the safest assumption is that any distribution shipping a kernel older than the patch commit is impacted.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate severity. The EPSS score of less than 1% indicates a currently low probability that this vulnerability will be exploited at scale. The CVE is not listed in the CISA KEV catalog, and no public exploit is known. The likely attack vector is an NFC-enabled device that can send a malicious LLCP packet to the target system; based on the description, it is inferred that an attacker would need physical or network proximity to the target to conduct the exploit. Overall, the theoretical risk remains limited until a specific exploit is discovered or the attack surface is expanded.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to the latest stable release that includes commit 0a0412745c86acd089c6460da715ab966b1615e7, which requires exact string length comparison in nfc_llcp_wks_sap().
  • Disable the NFC subsystem or the LLCP feature when it is not required, reducing the exposure to NFC-based attacks.
  • Restrict NFC traffic to known, trusted devices by implementing device authorization or network segmentation around the NFC interfaces.

Generated by OpenCVE AI on October 22, 2026 at 22:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4850-1 linux-6.12 security update
Ubuntu USN Ubuntu USN USN-8961-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9022-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9023-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9024-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9025-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9026-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9029-1 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-9039-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-9040-1 Linux kernel (Low Latency NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-9066-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-9091-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9183-1 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-9192-1 Linux kernel (NVIDIA) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-1025
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
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().
Title nfc: llcp: fix WKS SAP hijacking via prefix match in nfc_llcp_wks_sap()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1025

    Comparison Using Wrong Factors

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:22 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM