Description
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).
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
8c0695e4998dd268ff2a05951961247b7e015651 to < 6afb29751ee731e7f7a96feb8a15f91441e552baaffected8c0695e4998dd268ff2a05951961247b7e015651 to < e886c63d2ca7108826076989103a1ffa8a0bb8f4affected8c0695e4998dd268ff2a05951961247b7e015651 to < 4e942da2869bcd646353eef706b7dd82efeb9db5affected8c0695e4998dd268ff2a05951961247b7e015651 to < d0756a98277e383c26fead988a96c91f0781cd7faffected8c0695e4998dd268ff2a05951961247b7e015651 to < af4c0606f743e009254a8d252096855335ade85daffected8c0695e4998dd268ff2a05951961247b7e015651 to < a56773e649ea99b344d6bbaf90f34c8e3fadef5daffected8c0695e4998dd268ff2a05951961247b7e015651 to < a1ef9bddfbb3ae42b036c5aa16cf386d78db70b6affected8c0695e4998dd268ff2a05951961247b7e015651 to < 31aa28ed732f66ab83c40ef53d99791be69b85c4affected8c0695e4998dd268ff2a05951961247b7e015651 to < 344a56d7c8e0f3cbaff0bcb1bcd95a1a1db24b16affected
Linux Linux
Default version status: affected
3.13affected0 to < 3.13unaffected5.10.267 to ≤ 5.10.*unaffected5.15.218 to ≤ 5.15.*unaffected6.1.185 to ≤ 6.1.*unaffected6.6.154 to ≤ 6.6.*unaffected6.12.106 to ≤ 6.12.*unaffected6.18.47 to ≤ 6.18.*unaffected7.1.11 to ≤ 7.1.*unaffected7.2.1 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6afb29751ee731e7f7a96feb8a15f91441e552ba ↗
- https://git.kernel.org/stable/c/e886c63d2ca7108826076989103a1ffa8a0bb8f4 ↗
- https://git.kernel.org/stable/c/4e942da2869bcd646353eef706b7dd82efeb9db5 ↗
- https://git.kernel.org/stable/c/d0756a98277e383c26fead988a96c91f0781cd7f ↗
- https://git.kernel.org/stable/c/af4c0606f743e009254a8d252096855335ade85d ↗
- https://git.kernel.org/stable/c/a56773e649ea99b344d6bbaf90f34c8e3fadef5d ↗
- https://git.kernel.org/stable/c/a1ef9bddfbb3ae42b036c5aa16cf386d78db70b6 ↗
- https://git.kernel.org/stable/c/31aa28ed732f66ab83c40ef53d99791be69b85c4 ↗
- https://git.kernel.org/stable/c/344a56d7c8e0f3cbaff0bcb1bcd95a1a1db24b16 ↗