CVE-2023-31436
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2023-31436 affects the Linux kernel before version 6.2.13, specifically in the qfq_change_class function within net/sched/sch_qfq.c. The vulnerability allows an out-of-bounds write because lmax can exceed QFQ_MIN_LMAX. This issue was discovered by Gwangun Jung and was disclosed in April 2023 (NVD, GitHub).

Technical details

The vulnerability occurs in the Quick Fair Queueing (QFQ) scheduler implementation of the Linux kernel's traffic control subsystem. When the TCA_QFQ_LMAX value is not provided through nlattr, the lmax value is determined by the MTU value of the network device. Since the MTU of the loopback device can be set up to 2^31-1, it's possible for lmax to exceed QFQ_MIN_LMAX. This invalid lmax value leads to an index being generated that exceeds the QFQ_MAX_INDEX(=24) value, resulting in out-of-bounds read/write errors. The vulnerability has been assigned a CVSS v3.1 base score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

Successful exploitation of this vulnerability can lead to information leaks, denial of service (DoS), or potential privilege escalation. The out-of-bounds write capability could allow attackers to corrupt kernel memory, potentially leading to system crashes or arbitrary code execution (NetApp Advisory, Debian Security).

Exploitability

The vulnerability requires local access to the system and can be triggered through the traffic control (QoS) subsystem. The attack vector is local (AV:L) with low attack complexity (AC:L) and requires low privileges (PR:L) with no user interaction (UI:N) (NVD).

Mitigation and workarounds

The vulnerability has been fixed in Linux kernel version 6.2.13 and backported to various stable kernel versions. The fix involves adding proper validation of the lmax value before it's used in calculations. Users are recommended to upgrade to patched kernel versions. Various Linux distributions have released security updates to address this vulnerability (Debian Security, NetApp Advisory).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74583NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2026-74582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel.src
NoYesAug 21, 2026
CVE-2026-74581NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-modules-internal
NoYesAug 21, 2026
CVE-2026-74580NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesAug 21, 2026
CVE-2025-30156NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-devel-matched
NoYesAug 21, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management