NFC: nci: Bounds check struct nfc_target arrays
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 019c4fbaa790e2b3f11dab0c8b7d9896d77db3e5 · < 908b2da426fe9c3ce74cf541ba40e7a4251db191| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
NFC: nci: Bounds check struct nfc_target arrays
While running under CONFIG_FORTIFY_SOURCE=y, syzkaller reported:
memcpy: detected field-spanning write (size 129) of single field "target->sensf_res" at net/nfc/nci/ntf.c:260 (size 18)
This appears to be a legitimate lack of bounds checking in nci_add_new_protocol(). Add the missing checks.
From the CVE record · Linux
The Linux kernel's NFC NCI code lacks bounds checks for an nfc_target array, allowing a write beyond a field's bounds in nci_add_new_protocol(). The input does not specify how an attacker could trigger the issue or whether network access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.