nfc: digital: clamp SENSF_RES length to the destination buffer
- 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.267, 5.15.218, 6.1.185, 6.6.154, 6.12.106, and 3 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: digital: clamp SENSF_RES length to the destination buffer digital_in_recv_sensf_res() memcpy()s resp->len bytes from a remote NFC-F device response into the NFC_SENSF_RES_MAXSIZE-byte target.sensf_res field without an upper-bound check. A nearby malicious NFC-F device can send an oversized SENSF_RES response to overflow the stack-local struct nfc_target. Clamp resp->len to NFC_SENSF_RES_MAXSIZE before the copy. Found by 0sec automated security-research tooling (https://0sec.ai).
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in 6afb29751ee731e7f7a96feb8a15f91441e552ba; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in e886c63d2ca7108826076989103a1ffa8a0bb8f4; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in 4e942da2869bcd646353eef706b7dd82efeb9db5; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in d0756a98277e383c26fead988a96c91f0781cd7f; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in af4c0606f743e009254a8d252096855335ade85d; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in a56773e649ea99b344d6bbaf90f34c8e3fadef5d; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in a1ef9bddfbb3ae42b036c5aa16cf386d78db70b6; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in 31aa28ed732f66ab83c40ef53d99791be69b85c4; From 8c0695e4998dd268ff2a05951961247b7e015651 · fixed in 344a56d7c8e0f3cbaff0bcb1bcd95a1a1db24b16
- Linux Linux
3.13
- KernelLinux
From 3.13.0 · fixed in 5.10.267; From 5.11.0 · fixed in 5.15.218; From 5.16.0 · fixed in 6.1.185; From 6.2.0 · fixed in 6.6.154; From 6.7.0 · fixed in 6.12.106; From 6.13.0 · fixed in 6.18.47; From 6.19.0 · fixed in 7.1.11; From 7.2.0 · fixed in 7.2.1
References 9
git.kernel.org
- stable/c/6afb29751ee731e7f7a96feb8a15f91441e552ba
- stable/c/e886c63d2ca7108826076989103a1ffa8a0bb8f4
- stable/c/4e942da2869bcd646353eef706b7dd82efeb9db5
- stable/c/d0756a98277e383c26fead988a96c91f0781cd7f
- stable/c/af4c0606f743e009254a8d252096855335ade85d
- stable/c/a56773e649ea99b344d6bbaf90f34c8e3fadef5d
- stable/c/a1ef9bddfbb3ae42b036c5aa16cf386d78db70b6
- stable/c/31aa28ed732f66ab83c40ef53d99791be69b85c4
- stable/c/344a56d7c8e0f3cbaff0bcb1bcd95a1a1db24b16