CVE-2021-38166: Integer Overflow

Published Aug 7, 2021
·
Updated

In htabmaplookupanddeletebatch of hashtab.c, there is a possible out of bounds write due to an integer overflow. This could lead to local escalation of privilege with System execution privileges needed. User interaction is not needed for exploitation.

Other sources

In kernel/bpf/hashtab.c in the Linux kernel through 5.13.8, there is an integer overflow and out-of-bounds write when many elements are placed in a single bucket. NOTE: exploitation might be impractical without the CAPSYSADMIN capability.

— Launchpad

Affected Software

8 affected componentsFixes available
Linux Linux kernel<=5.13.8
Fedoraproject Fedora=33
Fedoraproject Fedora=34
Debian Debian Linux=11.0
Linux Linux kernel>=5.6<5.10.60
Linux Linux kernel>=5.11<5.13.12
android/:linux_kernel:>=:0<:2021-10-05
:2021-10-05
debian/linux
5.10.46-55.14.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade android/:linux_kernel: to a version that resolves this vulnerability.

    Fixed in :2021-10-05
  2. Upgrade

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

    Fixed in 5.10.46-5Fixed in 5.14.6-1

Event History

Aug 7, 2021
CVE Published
12:00 AM
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
CVE Published
via MITRE·05:50 PM
Data Sourced
via MITRE·05:50 PM
Description
Oct 1, 2021
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software
Apr 1, 2022
Data Sourced
08:27 PM
Weakness
Nov 7, 2023
Data Sourced
via NVD·03:37 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:37 AM
RemedyAffected Software
Updated
03:37 AM
Affected Software
Nov 21, 2024
Updated
via NVD·06:16 AM
RemedyAffected Software
Aug 5, 2026
Updated
via NVD·06:26 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-38166?

CVE-2021-38166 has a moderate severity due to the potential for integer overflow and out-of-bounds write in the Linux kernel.

2

How do I fix CVE-2021-38166?

To fix CVE-2021-38166, update to a patched version of the Linux kernel, specifically any version beyond 5.13.8.

3

Which versions of the Linux kernel are affected by CVE-2021-38166?

CVE-2021-38166 affects the Linux kernel versions up to and including 5.13.8.

4

Can CVE-2021-38166 be exploited without special permissions?

Exploitation of CVE-2021-38166 might be impractical without possessing the CAP_SYS_ADMIN capability.

5

What systems are impacted by CVE-2021-38166?

CVE-2021-38166 impacts systems running affected versions of the Linux kernel, including Fedora 33, Fedora 34, and Debian 11.0.

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