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 qfqchangeclass function within net/sched/schqfq.c. The vulnerability allows an out-of-bounds write because lmax can exceed QFQMIN_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 TCAQFQLMAX 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 QFQMINLMAX. This invalid lmax value leads to an index being generated that exceeds the QFQMAXINDEX(=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).

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-2025-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 2025

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