What’s Vulnerable › Vulnerabilities

CVE-2022-49923: nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.10.154, 5.15.78, 6.0.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49923 or the next vulnerability affects your stack