nfc: port100: reject frames whose declared length exceeds the received data
- 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: port100: reject frames whose declared length exceeds the received data port100_recv_response() passes the URB transfer buffer to port100_rx_frame_is_valid(), which checksums le16_to_cpu(frame->datalen) bytes of frame->data. datalen is a 16-bit field supplied by the device and is never checked against the number of bytes actually received (urb->actual_length), so a device reporting a datalen larger than the received frame makes port100_data_checksum() read out of bounds past the transfer buffer. Reject a response whose declared frame size does not fit the received length before validating it. Found by 0sec (https://0sec.ai) using automated source analysis; the missing bound is evident from source. Compile-tested.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 0d482995f0cdd0302450aa300c684c642d8ab31f; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 9e8df087826b9999d1b83b06f5d85675d5a69c9e; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in db66a30588630c7de30ef033f00daddef69f6ad9; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 144ad477c381e2c592b64898d04ab4ce03b32861; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in e4da1452e10c6472a4bac48dc2f6a35fff1fcd69; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 14b1467cfc6630583650f33538174c5a1ec685ab; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 035056e07ea65be670284246d9bc62f2f00ff4a3; From 562d4d59b8a1d5f3ca75115d6ac10c7b7bc68c06 · fixed in 092c6a605cbd6414ef499834c2e0da69c2c3388e
- Linux Linux
3.13
- KernelLinux
From 3.13.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/0d482995f0cdd0302450aa300c684c642d8ab31f
- stable/c/9e8df087826b9999d1b83b06f5d85675d5a69c9e
- stable/c/db66a30588630c7de30ef033f00daddef69f6ad9
- stable/c/144ad477c381e2c592b64898d04ab4ce03b32861
- stable/c/e4da1452e10c6472a4bac48dc2f6a35fff1fcd69
- stable/c/14b1467cfc6630583650f33538174c5a1ec685ab
- stable/c/035056e07ea65be670284246d9bc62f2f00ff4a3
- stable/c/092c6a605cbd6414ef499834c2e0da69c2c3388e