CVE-2023-31436: High severity Linux Linux kernel vulnerability

Published Apr 28, 2023
·
Updated

A flaw in the Linux Kernel found. A heap out-of-bounds read vulnerability in the Linux Kernel traffic control (QoS) subsystem can be exploited to achieve local privilege escalation. The qfqchangeclass function does not properly limit the lmax variable which can lead to out-of-bounds read/write. If the TCAQFQLMAX value is not offered through nlattr, lmax is determined by the MTU value of the network device. The MTU of the loopback device can be set up to 2^31-1 and as a result, it is possible to have an lmax value that exceeds QFQMINLMAX.

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3037933448f60f9acb705997eae62013ecb81e0d

Other sources

Linux Kernel could allow a local authenticated attacker to gain elevated privileges on the system, caused by an out-of-bounds write in qfqchangeclass in net/sched/schqfq.c. An attacker could exploit this vulnerability to gain elevated privileges on the system.

IBM

qfqchangeclass in net/sched/schqfq.c in the Linux kernel before 6.2.13 allows an out-of-bounds write because lmax can exceed QFQMINLMAX.

Affected Software

10 affected componentsFixes available
Linux Linux kernel>=3.7<4.14.314
Linux Linux kernel>=4.15<4.19.282
Linux Linux kernel>=4.20<5.4.242
Linux Linux kernel>=5.5.0<5.10.179
Linux Linux kernel>=5.11<5.15.109
Linux Linux kernel>=5.16<6.1.26
Linux Linux kernel>=6.2<6.2.13
IBM Security Verify Governance, Identity Manager software component<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager virtual appliance component<=ISVG 10.0.2
debian/linux
5.10.223-15.10.237-16.1.137-16.1.135-16.12.27-16.12.29-1

Remediation

Mitigation

If not needed, disable the ability for unprivileged users to create namespaces. To do this temporarily, do: sudo sysctl -w kernel.unprivileged_userns_clone=0 To disable across reboots, do: echo kernel.unprivileged_userns_clone=0 | \ sudo tee /etc/sysctl.d/99-disable-unpriv-userns.conf

Event History

Apr 28, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 2, 2023
Data Sourced
via Red Hat·05:20 PM
DescriptionSeverityAffected Software
Jul 18, 2023
Data Sourced
10:28 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·02:13 PM
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-2023-31436?

CVE-2023-31436 is classified as a high-severity vulnerability due to its potential for local privilege escalation.

2

How do I fix CVE-2023-31436?

To mitigate CVE-2023-31436, update the Linux Kernel to a version that has addressed this vulnerability, such as 5.10.223-1 or a later release.

3

Which systems are affected by CVE-2023-31436?

CVE-2023-31436 affects various versions of the Linux Kernel ranging from 3.7 up to 6.2.13, as well as IBM Security Verify Governance components up to version ISVG 10.0.2.

4

What kind of exploit is possible with CVE-2023-31436?

CVE-2023-31436 can be exploited to perform a heap out-of-bounds read, potentially leading to unauthorized access to kernel memory.

5

Is there a workaround for CVE-2023-31436 if I cannot upgrade?

There is no effective workaround for CVE-2023-31436, so upgrading to a patched version is strongly recommended.

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