cve.bz

CVE-2021-20261 Race Condition

6.4 mediumEPSS 0.2%Fix available

Medium (6.4). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
A race condition was found in the Linux kernels implementation of the floppy disk drive controller driver software. The impact of this issue is lessened by the fact that the default permissions on the floppy device (/dev/fd0) are restricted to root. If the permissions on the device have changed the impact changes greatly. In the default configuration root (or equivalent) permissions are required to attack this flaw.

Severity

CVSS 3.1

6.4 medium
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization (Race Condition)
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20261 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20261?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20261?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20261 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 4.5
linux:linux_kernel4.5
linux:linux_kernel4.5:rc1
linux:linux_kernel4.5:rc2
linux:linux_kernel4.5:rc3
linux:linux_kernel4.5:rc4
redhat:enterprise_linux7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux4.5.1-1DEBIAN-CVE-2021-20261
Ubuntu16.04:LTSlinux4.4.0-208.240UBUNTU-CVE-2021-20261 USN-4904-1
Ubuntu16.04:LTSlinux-aws4.4.0-1126.140UBUNTU-CVE-2021-20261 USN-4904-1
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2021-20261
Ubuntu16.04:LTSlinux-kvm4.4.0-1091.100UBUNTU-CVE-2021-20261 USN-4904-1
Ubuntu16.04:LTSlinux-raspi24.4.0-1150.161UBUNTU-CVE-2021-20261 USN-4904-1
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1154.164UBUNTU-CVE-2021-20261 USN-4904-1
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 10 moreno fix listedUBUNTU-CVE-2021-20261
Ubuntu18.04:LTSlinux-snapdragon4.15.0-1053.57UBUNTU-CVE-2021-20261
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 1 moreno fix listedUBUNTU-CVE-2021-20261
Ubuntu22.04:LTSlinux-riscv, linux-realtime, linux-intel-iot-realtimeno fix listedUBUNTU-CVE-2021-20261
Ubuntu24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2021-20261
UbuntuPro:14.04:LTSlinuxno fix listedUBUNTU-CVE-2021-20261
5 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise Server 11 SP4-LTSSkernel-ec2, kernel-pae, kernel-xen and 6 more3.0.101-108.126.1SUSE-SU-2021:14724-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is rated as having a Moderate impact because the default and supported configuration is not readable by unprivileged users. Moreover, if the attacker is granted access, there are significantly easier attack vectors available.

Red Hat's mitigation

As the floppy module will be auto-loaded when required, its use can be disabled by preventing the module from loading with the following instructions:

# echo "install floppy /bin/true" >> /etc/modprobe.d/disable-floppy.conf

The system will need to be restarted if the floppy modules are loaded and in use.

Alternatively, disabling the floppy in the BIOS or virtual machine configuration and restarting the system will also ensure that the floppy hardware

will not autoload the kernel floppy module.

If the system requires this module to work correctly, this mitigation may not be suitable.

If you need further assistance, see KCS article https://access.redhat.com/solutions/41278 or contact Red Hat Global Support Services.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5kernelOut of support scope
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernel-altNot affected
Red Hat Enterprise Linux 7kernelAffected
Red Hat Enterprise Linux 7kernel-rtAffected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20261.

Attack patterns (CAPEC)

  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON