nfc: llcp: fix WKS SAP hijacking via prefix match in nfc_llcp_wks_sap()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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().
Timeline
- CVE published
- Record last updated
Affected versions
- Linux 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 Linux
3.3
- KernelLinux
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
References 8
git.kernel.org
- stable/c/0c83a8a45fed256ccc5fe7160b436b671fc79fb8
- stable/c/aa555ed5ed0d15efbaf27e0e9f152a6df715278a
- stable/c/32b5f0b338bf59391a1cff9a6190a72c4d2c1ba8
- stable/c/6fad2c34d451d11a9f3f946cae1105fee91d96b8
- stable/c/bf41af8f910cbb5d776a1dfa0671d31a7e262e28
- stable/c/f234197f3bda3aea5d4b1e591d6bcb3660a8b3fc
- stable/c/0a0412745c86acd089c6460da715ab966b1615e7
- stable/c/408cff6bd60636df201274d320edfdfde9ed41db