5.5medium
nfc: nxp-nci: Fix potential memory leak in nxp_nci_send()
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.28% (higher than 13% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from dece45855a8b0d1dcf48eb01d0822070ded6a4c8 before 9ae2c9a91ff068f4c3e392f47e8e26a1c9f85ebb, from dece45855a8b0d1dcf48eb01d0822070ded6a4c8 before 3cba1f061bfe23fece2841129ca2862cdec29d5c, from dece45855a8b0d1dcf48eb01d0822070ded6a4c8 before 3ecf0f4227029b2c42e036b10ff6e5d09e20821e, from dece45855a8b0d1dcf48eb01d0822070ded6a4c8 before 7bf1ed6aff0f70434bd0cdd45495e83f1dffb551, 4.1 Not affected: before 4.1, from 5.10.154 up to 5.10.*, from 5.15.78 up to 5.15.*, from 6.0.8 up to 6.0.*, from 6.1 up to * | CVE List |
| linux linux_kernel | from 4.1 before 5.10.154, from 5.11 before 5.15.78, from 5.16 before 6.0.8, 6.1 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: nfc: nxp-nci: Se corrige una posible fuga de memoria en nxp_nci_send(). nxp_nci_send() llamará a nxp_nci_i2c_write() y solo liberará skb cuando nxp_nci_i2c_write() falle. Sin embargo, incluso si la ejecución de nxp_nci_i2c_write() tiene éxito, skb no se liberará en nxp_nci_i2c_write(). Como resultado, skb sufrirá una fuga de memoria. nxp_nci_send() también debería liberar skb cuando nxp_nci_i2c_write() tenga éxito.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-49923 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-49923 changed 2026-06-17 | Public domain |