CVE-2021-46950
md/raid1: properly indicate failure when ending a failed write request
Check your servers for CVE-2021-46950
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-46950 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:
md/raid1: properly indicate failure when ending a failed write request
This patch addresses a data corruption bug in raid1 arrays using bitmaps. Without this fix, the bitmap bits for the failed I/O end up being cleared.
Since we are in the failure leg of raid1_end_write_request, the request either needs to be retried (R1BIO_WriteError) or failed (R1BIO_Degraded).
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
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 17.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Apr 2025):
- 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 900c531899f5ee2321bef79e20055787bc73251d, before 12216d0919b64ee2ea5dc7a50e455670f44383d5 affected from 1cd972e0a10760a1fa27d9830d78446c891c23b6, before a6e17cab00fc5bf85472434c52ac751426257c6f affected from eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, before 6920cef604fa57f9409e3960413e9cc11f5c5a40 affected from eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, before 661061a45e32d8b2cc0e306da9f169ad44011382 affected from eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, before 59452e551784b7a57a45d971727e9db63b192515 affected from eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, before 538244fba59fde17186322776247cd9c05be86dd affected from eeba6809d8d58908b5ed1b5ceb5fcb09a98a7cad, before 2417b9869b81882ab90fd5ed1081a1cb2d4db1dd affected a1f4fcb880988a96c0b2d5c3305ffc4e49eca0ed affected 344242d50f468a250bf4b6136934392758412ed8 affected from 4.14.147, before 4.14.233 affected from 4.19.77, before 4.19.191 affected from 5.2.19, before 5.3 affected from 5.3.4, before 5.4
Other versions: unaffected
|
| Linux |
affected 5.4 unaffected before 5.4 unaffected from 4.14.233 up to and including 4.14.* unaffected from 4.19.191 up to and including 4.19.* unaffected from 5.4.118 up to and including 5.4.* unaffected from 5.10.36 up to and including 5.10.* unaffected from 5.11.20 up to and including 5.11.* unaffected from 5.12.3 up to and including 5.12.* unaffected 5.13 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-46950 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-46950
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-46950
trivy image --scanners vuln IMAGE | grep CVE-2021-46950
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/12216d0919b64ee2ea5dc7a50e455670f44383d5 git.kernel.org
- https://git.kernel.org/stable/c/a6e17cab00fc5bf85472434c52ac751426257c6f git.kernel.org
- https://git.kernel.org/stable/c/6920cef604fa57f9409e3960413e9cc11f5c5a40 git.kernel.org
- https://git.kernel.org/stable/c/661061a45e32d8b2cc0e306da9f169ad44011382 git.kernel.org
- https://git.kernel.org/stable/c/59452e551784b7a57a45d971727e9db63b192515 git.kernel.org
- https://git.kernel.org/stable/c/538244fba59fde17186322776247cd9c05be86dd git.kernel.org
- https://git.kernel.org/stable/c/2417b9869b81882ab90fd5ed1081a1cb2d4db1dd git.kernel.org
Source: the record CVE-2021-46950 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