CVE-2021-47336
smackfs: restrict bytes count in smk_set_cipso()
Check your servers for CVE-2021-47336
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-47336 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:
smackfs: restrict bytes count in smk_set_cipso()
Oops, I failed to update subject line.
From 07571157c91b98ce1a4aa70967531e64b78e8346 Mon Sep 17 00:00:00 2001 Date: Mon, 12 Apr 2021 22:25:06 +0900 Subject: [PATCH] smackfs: restrict bytes count in smk_set_cipso()
Commit 7ef4c19d245f3dc2 ("smackfs: restrict bytes count in smackfs write functions") missed that count > SMK_CIPSOMAX check applies to only format == SMK_FIXED24_FMT case.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 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 f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 5f9880403e6b71d56924748ba331daf836243fca affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2 affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before cbd87ba6a13891acf6180783f8234a8b7a3e3d4d affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 135122f174c357b7a3e58f40fa5792156c5e93e6 affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 3780348c1a0e14ffefcaf1fc521f815bcaac94b0 affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 8f5c773a2871cf446e3f36b2834fb25bbb28512b affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 258fd821f69378453c071b9dd767b298810fc766 affected from f7112e6c9abf1c70f001dcf097c1d6e218a93f5c, before 49ec114a6e62d8d320037ce71c1aaf9650b3cafd
Other versions: unaffected
|
| Linux |
affected 3.5 unaffected before 3.5 unaffected from 4.9.276 up to and including 4.9.* unaffected from 4.14.240 up to and including 4.14.* unaffected from 4.19.198 up to and including 4.19.* unaffected from 5.4.133 up to and including 5.4.* unaffected from 5.10.51 up to and including 5.10.* unaffected from 5.12.18 up to and including 5.12.* unaffected from 5.13.3 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-47336 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47336
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-47336
trivy image --scanners vuln IMAGE | grep CVE-2021-47336
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/5f9880403e6b71d56924748ba331daf836243fca git.kernel.org
- https://git.kernel.org/stable/c/5c2dca9a7a7ff6a2df34158903515e2e4fd3d2b2 git.kernel.org
- https://git.kernel.org/stable/c/cbd87ba6a13891acf6180783f8234a8b7a3e3d4d git.kernel.org
- https://git.kernel.org/stable/c/135122f174c357b7a3e58f40fa5792156c5e93e6 git.kernel.org
- https://git.kernel.org/stable/c/3780348c1a0e14ffefcaf1fc521f815bcaac94b0 git.kernel.org
- https://git.kernel.org/stable/c/8f5c773a2871cf446e3f36b2834fb25bbb28512b git.kernel.org
- https://git.kernel.org/stable/c/258fd821f69378453c071b9dd767b298810fc766 git.kernel.org
- https://git.kernel.org/stable/c/49ec114a6e62d8d320037ce71c1aaf9650b3cafd git.kernel.org
Source: the record CVE-2021-47336 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