CVE-2021-4157: Buffer Overflow

Published May 17, 2021
·
Updated

A flaw was found in the Linux kernel. A incorrect size check in decodenfsfh() may lead to an overwrite of 2 bytes beyond destination.

References:

https://lore.kernel.org/lkml/20210517140244.822185482@linuxfoundation.org/

Other sources

An out of memory bounds write flaw (1 or 2 bytes of memory) in the Linux kernel NFS subsystem was found in the way users use mirroring (replication of files with NFS). A user, having access to the NFS mount, could potentially use this flaw to crash the system or escalate privileges on the system.

Affected Software

44 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
redhat/kernel<5.13
5.13
Linux Linux kernel>=4.0<4.4.269
Linux Linux kernel>=4.5<4.9.269
Linux Linux kernel>=4.10<4.14.233
Linux Linux kernel>=4.15<4.19.191
Linux Linux kernel>=4.20<5.4.120
Linux Linux kernel>=5.5<5.10.38
Linux Linux kernel>=5.11<5.11.22
Linux Linux kernel>=5.12<5.12.5
Fedoraproject Fedora=35
All of the following
NetApp H300e Firmware
NetApp H300e
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500e Firmware
NetApp H500e
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700e Firmware
NetApp H700e
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
Oracle Communications Cloud Native Core Binding Support Function=22.1.1
Oracle Communications Cloud Native Core Binding Support Function=22.1.3
Oracle Communications Cloud Native Core Binding Support Function=22.2.0
NetApp H300e Firmware
NetApp H300e
NetApp H300s Firmware
NetApp H300s
NetApp H500e Firmware
NetApp H500e
NetApp H500s Firmware
NetApp H500s
NetApp H700e Firmware
NetApp H700e
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
debian/linux
5.10.223-15.10.234-16.1.129-16.1.133-16.12.21-16.12.22-1

Remediation

Information

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

May 17, 2021
CVE Published
12:00 AM
Mar 25, 2022
CVE Published
via MITRE·06:02 PM
Data Sourced
via MITRE·06:02 PM
DescriptionWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:01 AM
Description
Apr 12, 2025
Data Sourced
via Ubuntu·03:47 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2021-4157?

CVE-2021-4157 has been classified as a medium severity vulnerability due to the potential for memory corruption leading to arbitrary code execution.

2

How do I fix CVE-2021-4157?

To remediate CVE-2021-4157, update to the patched version of the Linux kernel as indicated in the vulnerability details.

3

What versions of the Linux kernel are affected by CVE-2021-4157?

CVE-2021-4157 affects various versions of the Linux kernel, specifically those before 4.18.0-372.9.1.el8 and across several other version ranges.

4

What are the potential consequences of exploiting CVE-2021-4157?

Exploitation of CVE-2021-4157 may lead to a crash of the affected system or potentially allow an attacker to execute arbitrary code.

5

Is CVE-2021-4157 specific to any distribution of the Linux kernel?

Yes, CVE-2021-4157 primarily affects Red Hat-based distributions of the Linux kernel, but may impact other distributions that use vulnerable kernel versions.

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