nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
nxp_nci_send() will call nxp_nci_i2c_write(), and only free skb when nxp_nci_i2c_write() failed. However, even if the nxp_nci_i2c_write() run succeeds, the skb will not be freed in nxp_nci_i2c_write(). As the result, the skb will memleak. nxp_nci_send() should also free the skb when nxp_nci_i2c_write() succeeds.
From the CVE record · Linux
The nxp-nci NFC driver can leak memory when nxp_nci_send() calls nxp_nci_i2c_write() successfully because the skb is not freed. The input does not establish whether an attacker can trigger the leak or specify access or interaction requirements.
Engineers running Linux kernels with the nxp-nci NFC driver should check whether their kernel includes the fix; affected versions are not specified.