CVE-2021-46924
NFC: st21nfca: Fix memory leak in device probe and remove
Check your servers for CVE-2021-46924
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-46924 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before 38c3e320e7ff46f2dc67bc5045333e63d9f8918d affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before a1e0080a35a16ce3808f7040fe0c3a8fdb052349 affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before 1cd4063dbc91cf7965d73a6a3855e2028cd4613b affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before e553265ea56482da5700f56319fda9ff53e7dcb4 affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before 238920381b8925d070d32d73cd9ce52ab29896fe affected from 68957303f44a501af5cf37913208a2acaa6bcdf1, before 1b9dadba502234eea7244879b8d5d126bfaf9f0c
Other versions: unaffected
|
| Linux |
affected 3.16 unaffected before 3.16 unaffected from 4.14.261 up to and including 4.14.* unaffected from 4.19.224 up to and including 4.19.* unaffected from 5.4.170 up to and including 5.4.* unaffected from 5.10.90 up to and including 5.10.* unaffected from 5.15.13 up to and including 5.15.* unaffected 5.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-46924 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46924
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-46924
trivy image --scanners vuln IMAGE | grep CVE-2021-46924
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/38c3e320e7ff46f2dc67bc5045333e63d9f8918d git.kernel.org
- https://git.kernel.org/stable/c/a1e0080a35a16ce3808f7040fe0c3a8fdb052349 git.kernel.org
- https://git.kernel.org/stable/c/1cd4063dbc91cf7965d73a6a3855e2028cd4613b git.kernel.org
- https://git.kernel.org/stable/c/e553265ea56482da5700f56319fda9ff53e7dcb4 git.kernel.org
- https://git.kernel.org/stable/c/238920381b8925d070d32d73cd9ce52ab29896fe git.kernel.org
- https://git.kernel.org/stable/c/1b9dadba502234eea7244879b8d5d126bfaf9f0c git.kernel.org
Source: the record CVE-2021-46924 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse