CVE-2022-34918: Buffer Overflow

Published Jul 2, 2022
·
Updated

A heap buffer overflow flaw was found in the Linux kernel’s Netfilter subsystem in the way a user provides incorrect input of the NFTDATAVERDICT type. This flaw allows a local user to crash or potentially escalate their privileges on the system.

Other sources

A heap buffer overflow vulnerability was identified within the netfilter subsystem which can be exploited to achieve privilege escalation to root. In order to trigger the issue it requires the ability to create user/net namespaces. The reason of the vulnerability is the type confusion bug in nftseteleminit, and it is different vulnerability than similar CVE-2022-32250.

Reference:

https://lore.kernel.org/netfilter-devel/cd9428b6-7ffb-dd22-d949-d86f4869f452@randorisec.fr/T/

Red Hat

An issue was discovered in the Linux kernel through 5.18.9. A type confusion bug in nftseteleminit (leading to a buffer overflow) could be used by a local attacker to escalate privileges, a different vulnerability than CVE-2022-32250. (The attacker can obtain root access, but must start with an unprivileged user namespace to obtain CAPNETADMIN access.) This can be fixed in nftsetelemparsedata in net/netfilter/nftablesapi.c.

Affected Software

36 affected componentsFixes available
redhat/kernel<0:5.14.0-70.26.1.el9_0
0:5.14.0-70.26.1.el9_0
redhat/kernel-rt<0:5.14.0-70.26.1.rt21.98.el9_0
0:5.14.0-70.26.1.rt21.98.el9_0
Linux Linux kernel>=4.1<4.14.316
Linux Linux kernel>=4.15<4.19.284
Linux Linux kernel>=4.20<5.4.244
Linux Linux kernel>=5.5<5.10.130
Linux Linux kernel>=5.11<5.15.54
Linux Linux kernel>=5.16<5.18.11
Debian Debian Linux=11.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Canonical Ubuntu Linux=22.04
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
NetApp H410c Firmware
NetApp H410c
redhat/Linux kernel<5.19
5.19
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 H410s Firmware
NetApp H410s
All of the following
NetApp H410c Firmware
NetApp H410c
debian/linux
6.1.176-16.1.187-16.12.94-16.12.107-17.1.12-17.1.13-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 0:5.14.0-70.26.1.el9_0
  2. Upgrade

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

    Fixed in 0:5.14.0-70.26.1.rt21.98.el9_0
  3. Upgrade

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

    Fixed in 5.19
  4. Upgrade

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

    Fixed in 6.1.176-1Fixed in 6.1.187-1Fixed in 6.12.94-1Fixed in 6.12.107-1Fixed in 7.1.12-1Fixed in 7.1.13-1
  5. Configuration

    On non-containerized deployments, disable unprivileged user namespaces by setting user.max_user_namespaces to 0 (e.g., write user.max_user_namespaces=0 to /etc/sysctl.d/userns.conf and apply with sysctl -p /etc/sysctl.d/userns.conf).

    Linux kernel sysctl user.max_user_namespaces = 0
  6. Configuration

    Also disable unprivileged user namespace clone by setting kernel.unprivileged_userns_clone=0 (e.g., sudo sysctl kernel.unprivileged_userns_clone=0).

    Linux kernel sysctl kernel.unprivileged_userns_clone = 0

Event History

Jul 2, 2022
CVE Published
02:00 PM
Jul 4, 2022
CVE Published
via MITRE·08:07 PM
Data Sourced
via MITRE·08:07 PM
Description
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 6, 2022
Data Sourced
via Red Hat·08:45 AM
DescriptionSeverityAffected Software
Jul 1, 2026
Data Sourced
via Launchpad·11:26 AM
Description
Aug 27, 2026
Data Sourced
via Ubuntu·12:42 PM
RemedyDescriptionSeverityAffected Software
Sep 8, 2026
Data Sourced
via Debian·01:05 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2022-34918?

CVE-2022-34918 is classified as a high severity vulnerability due to its potential for privilege escalation and system crashes.

2

How do I fix CVE-2022-34918?

To fix CVE-2022-34918, update the Linux kernel to version 0:5.14.0-70.26.1.el9_0 or later versions listed in the remediation.

3

Which Linux distributions are affected by CVE-2022-34918?

CVE-2022-34918 affects several Linux distributions including specific versions of Red Hat, Debian, and Ubuntu.

4

Can CVE-2022-34918 be exploited by remote users?

No, CVE-2022-34918 requires local user access to exploit the vulnerability.

5

What systems are most at risk from CVE-2022-34918?

Systems running vulnerable versions of the Linux kernel, particularly in environments where user inputs can be manipulated, are at higher risk.

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