CVE-2021-4001: Race Condition

Published Nov 22, 2021
·
Updated

A race condition was found in the Linux kernel's ebpf verifier between bpfmapupdateelem and bpfmapfreeze due to a missing lock in kernel/bpf/syscall.c. In this flaw, a local user with a special privilege (capsysadmin or capbpf) can modify the frozen mapped address space. This flaw affects kernel versions prior to 5.16 rc2.

Other sources

A race problem is found in the ebpf verifier between bpfmapupdateelem and bpfmapfreeze due to a missing lock in kernel/bpf/syscall.c. In this flaw, a local user with a special privilege (capsysadmin or capbpf) can modify the frozen mapped address space.

Reference and upstream patch: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=353050be4c19e102178ccc05988101887c25ae53

— Red Hat

Affected Software

4 affected componentsFixes available
redhat/kernel<5.16
5.16
Linux Linux kernel<=5.15
Linux Linux kernel=5.16-rc1
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  3. Upgrade

    Upgrade Linux kernel to a version that resolves this vulnerability.

    Fixed in 5.16 rc2Patch 353050be4c19e102178ccc05988101887c25ae53

Event History

Nov 22, 2021
Data Sourced
via Red Hat·04:34 PM
DescriptionSeverityAffected Software
Jan 21, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:00 AM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·02:53 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2021-4001?

CVE-2021-4001 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2021-4001?

To fix CVE-2021-4001, upgrade your kernel to version 5.16 or later for Red Hat or to the specified remedial versions for Debian.

3

Who is affected by CVE-2021-4001?

CVE-2021-4001 affects local users with special privileges, such as cap_sys_admin or cap_bpf, on specific versions of the Linux kernel.

4

What types of systems are vulnerable to CVE-2021-4001?

Systems running Linux kernel versions up to 5.15, including any pre-release versions like 5.16-rc1, are vulnerable to CVE-2021-4001.

5

Can I exploit CVE-2021-4001 without special privileges?

No, exploiting CVE-2021-4001 requires special privileges such as cap_sys_admin or cap_bpf.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203