CVE-2021-41864: Integer Overflow

Published Sep 30, 2021
·
Updated

An out-of-bounds (OOB) memory write flaw was found in preallocelemsandfreelist in kernel/bpf/stackmap.c in the bpf iin the Linux kernel. In this flaw, the multiplication to calculate the size could lead to an integer overflow, and this could allow a local attacker, with a special user privilege to gain access to out-of-bounds memory leading to a system crash or a leak of internal kernel information.

Reference and upstream patch: https://github.com/torvalds/linux/commit/30e29a9a2bc6a4888335a6ede968b75cd329657a

Other sources

An out-of-bounds (OOB) memory write flaw was found in preallocelemsandfreelist in kernel/bpf/stackmap.c in the bpf in the Linux kernel. In this flaw, the multiplication to calculate the size could lead to an integer overflow which could allow a local attacker, with a special user privilege, to gain access to out-of-bounds memory leading to a system crash or a leak of internal kernel information.

preallocelemsandfreelist in kernel/bpf/stackmap.c in the Linux kernel before 5.14.12 allows unprivileged users to trigger an eBPF multiplication integer overflow with a resultant out-of-bounds write.

Affected Software

54 affected componentsFixes available
redhat/kernel-rt<0:4.18.0-372.9.1.rt7.166.el8
0:4.18.0-372.9.1.rt7.166.el8
redhat/kernel<0:4.18.0-372.9.1.el8
0:4.18.0-372.9.1.el8
Linux Linux kernel<5.14.12
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Fedoraproject Fedora=35
NetApp Cloud Backup
NetApp Hci Management Node
NetApp Solidfire
All of the following
NetApp H410c Firmware
NetApp H410c
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp Solidfire Baseboard Management Controller Firmware
NetApp Solidfire Baseboard Management Controller
Debian Debian Linux=9.0
Debian Debian Linux=10.0
NetApp H410c Firmware
NetApp H410c
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H300e Firmware
NetApp H300e
NetApp H500e Firmware
NetApp H500e
NetApp H700e Firmware
NetApp H700e
NetApp H410s Firmware
NetApp H410s
NetApp Solidfire Baseboard Management Controller Firmware
NetApp Solidfire Baseboard Management Controller
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
Linux Linux kernel>=4.6<4.9.287
Linux Linux kernel>=4.10<4.14.251
Linux Linux kernel>=4.15<4.19.211
Linux Linux kernel>=4.20<5.4.153
Linux Linux kernel>=5.5<5.10.73
Linux Linux kernel>=5.11<5.14.12

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:4.18.0-372.9.1.rt7.166.el8
  2. Upgrade

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

    Fixed in 0:4.18.0-372.9.1.el8
  3. 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.25-1
  4. Upgrade

    Upgrade Linux kernel (kernel/bpf/stackmap.c, prealloc_elems_and_freelist) to a version that resolves this vulnerability.

    Fixed in 5.14.12

Event History

Sep 30, 2021
CVE Published
12:00 AM
Oct 1, 2021
CVE Published
via MITRE·11:46 PM
Data Sourced
via MITRE·11:46 PM
Description
Oct 2, 2021
Data Sourced
via NVD·12:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Oct 4, 2021
Data Sourced
via Red Hat·05:42 PM
DescriptionSeverityAffected Software
Jan 12, 2024
Data Sourced
via Launchpad·12:01 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·04:34 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2021-41864?

CVE-2021-41864 has a high severity rating due to its potential for exploitation leading to significant impacts on affected systems.

2

How do I fix CVE-2021-41864?

To fix CVE-2021-41864, update to the patched versions of the affected packages, specifically kernel-rt and kernel packages under Red Hat, or update your Linux kernel to versions beyond 5.14.12.

3

Who is affected by CVE-2021-41864?

CVE-2021-41864 affects various distributions of the Linux kernel and specific versions of the NetApp cloud backup solutions.

4

What types of attacks can exploit CVE-2021-41864?

CVE-2021-41864 can be exploited by local attackers with special privileges to perform out-of-bounds memory writes, potentially leading to escalation of privileges.

5

Is CVE-2021-41864 a kernel vulnerability?

Yes, CVE-2021-41864 is a vulnerability within the Linux kernel, specifically in the BPF subsystem.

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