CVE-2021-47294
netrom: Decrease sock refcount when sock timers expire
Check your servers for CVE-2021-47294
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-47294 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:
netrom: Decrease sock refcount when sock timers expire
Commit 63346650c1a9 ("netrom: switch to sock timer API") switched to use sock timer API. It replaces mod_timer() by sk_reset_timer(), and del_timer() by sk_stop_timer().
Function sk_reset_timer() will increase the refcount of sock if it is called on an inactive timer, hence, in case the timer expires, we need to decrease the refcount ourselves in the handler, otherwise, the sock refcount will be unbalanced and the sock will never be freed.
Exploitation
EPSS 0.28%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 21.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 28 May 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 ce29e8a259de767f7210d346ad2b031cb8ab2732, before 853262355518cd1247515b74e83fabf038aa6c29 affected from baa9e32336bf6d0d74a7c3486d2a27feaf57cd5f, before a01634bf91f2b6c42583770eb6815fb6d1e251cf affected from 0adf571fa34b27bd0b97b408cc0f0dc54b72f0eb, before 48866fd5c361ea417ed24b43fc2a7dc2f5b060ef affected from 2c6b572458a9127e8070df13fa7f115c29ab1d92, before 9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950 affected from 63346650c1a94a92be61a57416ac88c0a47c4327, before 25df44e90ff5959b5c24ad361b648504a7e39ef3 affected from 63346650c1a94a92be61a57416ac88c0a47c4327, before 6811744bd0efb9e472cb15d066cdb460beb8cb8a affected from 63346650c1a94a92be61a57416ac88c0a47c4327, before bc1660206c3723c37ed4d622ad81781f1e987250 affected from 63346650c1a94a92be61a57416ac88c0a47c4327, before 517a16b1a88bdb6b530f48d5d153478b2552d9a8 affected f1d9a1f2ef6ff17293d21d5e6b80e04bea0cf508 affected 519e8a22a454b1f1baa3a151b184fe51bc18e178 affected from 4.4.173, before 4.4.277 affected from 4.9.155, before 4.9.277 affected from 4.14.98, before 4.14.241 affected from 4.19.20, before 4.19.199 affected from 3.18.134, before 3.19 affected from 4.20.7, before 4.21
Other versions: unaffected
|
| Linux |
affected 5.0 unaffected before 5.0 unaffected from 4.4.277 up to and including 4.4.* unaffected from 4.9.277 up to and including 4.9.* unaffected from 4.14.241 up to and including 4.14.* unaffected from 4.19.199 up to and including 4.19.* unaffected from 5.4.136 up to and including 5.4.* unaffected from 5.10.54 up to and including 5.10.* unaffected from 5.13.6 up to and including 5.13.* unaffected 5.14 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-47294 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47294
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-47294
trivy image --scanners vuln IMAGE | grep CVE-2021-47294
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/853262355518cd1247515b74e83fabf038aa6c29 git.kernel.org
- https://git.kernel.org/stable/c/a01634bf91f2b6c42583770eb6815fb6d1e251cf git.kernel.org
- https://git.kernel.org/stable/c/48866fd5c361ea417ed24b43fc2a7dc2f5b060ef git.kernel.org
- https://git.kernel.org/stable/c/9619cc7d97c3aa8ed3cfd2b8678b74fb6d6c7950 git.kernel.org
- https://git.kernel.org/stable/c/25df44e90ff5959b5c24ad361b648504a7e39ef3 git.kernel.org
- https://git.kernel.org/stable/c/6811744bd0efb9e472cb15d066cdb460beb8cb8a git.kernel.org
- https://git.kernel.org/stable/c/bc1660206c3723c37ed4d622ad81781f1e987250 git.kernel.org
- https://git.kernel.org/stable/c/517a16b1a88bdb6b530f48d5d153478b2552d9a8 git.kernel.org
Source: the record CVE-2021-47294 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