# CVE-2021-46924: NFC: st21nfca: Fix memory leak in device probe and remove

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-02-27T09:43:54.792Z
- Modified: 2026-06-17T04:15:51.973Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

NFC: st21nfca: Fix memory leak in device probe and remove

'phy->pending_skb' is alloced when device probe, but forgot to free
in the error handling path and remove path, this cause memory leak
as follows:

unreferenced object 0xffff88800bc06800 (size 512):
  comm "8", pid 11775, jiffies 4295159829 (age 9.032s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<00000000d66c09ce>] __kmalloc_node_track_caller+0x1ed/0x450
    [<00000000c93382b3>] kmalloc_reserve+0x37/0xd0
    [<000000005fea522c>] __alloc_skb+0x124/0x380
    [<0000000019f29f9a>] st21nfca_hci_i2c_probe+0x170/0x8f2

Fix it by freeing 'pending_skb' in error and remove.

(As written by CVE List.)

## Affected

- Linux Linux: from 68957303f44a501af5cf37913208a2acaa6bcdf1 before 38c3e320e7ff46f2dc67bc5045333e63d9f8918d; from 68957303f44a501af5cf37913208a2acaa6bcdf1 before a1e0080a35a16ce3808f7040fe0c3a8fdb052349; from 68957303f44a501af5cf37913208a2acaa6bcdf1 before 1cd4063dbc91cf7965d73a6a3855e2028cd4613b; from 68957303f44a501af5cf37913208a2acaa6bcdf1 before e553265ea56482da5700f56319fda9ff53e7dcb4; from 68957303f44a501af5cf37913208a2acaa6bcdf1 before 238920381b8925d070d32d73cd9ce52ab29896fe; from 68957303f44a501af5cf37913208a2acaa6bcdf1 before 1b9dadba502234eea7244879b8d5d126bfaf9f0c; 3.16 (not affected: before 3.16; from 4.14.261 up to 4.14.*; from 4.19.224 up to 4.19.*; from 5.4.170 up to 5.4.*; from 5.10.90 up to 5.10.*; from 5.15.13 up to 5.15.*; from 5.16 up to *)
- linux linux_kernel: from 3.16.0 before 4.14.261; from 4.15.0 before 4.19.224; from 4.20.0 before 5.4.170; from 5.5.0 before 5.10.90; from 5.11.0 before 5.15.13

## References

- <https://git.kernel.org/stable/c/38c3e320e7ff46f2dc67bc5045333e63d9f8918d> (patch)
- <https://git.kernel.org/stable/c/a1e0080a35a16ce3808f7040fe0c3a8fdb052349> (patch)
- <https://git.kernel.org/stable/c/1cd4063dbc91cf7965d73a6a3855e2028cd4613b> (patch)
- <https://git.kernel.org/stable/c/e553265ea56482da5700f56319fda9ff53e7dcb4> (patch)
- <https://git.kernel.org/stable/c/238920381b8925d070d32d73cd9ce52ab29896fe> (patch)
- <https://git.kernel.org/stable/c/1b9dadba502234eea7244879b8d5d126bfaf9f0c> (patch)

## Sources

- CVE List: [CVE-2021-46924](https://www.cve.org/CVERecord?id=CVE-2021-46924), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-46924](https://nvd.nist.gov/vuln/detail/CVE-2021-46924), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-46924 · Whole record: https://cve.day/CVE-2021-46924.json · Rebuilt by cve.day 2026-11-25T22:58:08.566Z
