CVE-2025-38568

net/sched: mqprio: fix stack out-of-bounds write in tc entry parsing

State
Published
Severity
7.8 High
Published
Aug 19, 2025
Updated
Aug 5, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net/sched: mqprio: fix stack out-of-bounds write in tc entry parsing

TCA_MQPRIO_TC_ENTRY_INDEX is validated using NLA_POLICY_MAX(NLA_U32, TC_QOPT_MAX_QUEUE), which allows the value TC_QOPT_MAX_QUEUE (16). This leads to a 4-byte out-of-bounds stack write in the fp[] array, which only has room for 16 elements (0–15).

Fix this by changing the policy to allow only up to TC_QOPT_MAX_QUEUE - 1.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to before 39491e859fd494d0b51adc5c7d54c8a7dcf1d198Affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to before d00e4125680f7074c4f42ce3c297336f23128e70Affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to before 66fc2ebdd9d5dd6e5a9c7edeace5a61a0ab2cd86Affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to before f1a9dbcb7d17bf0abb325cdc984957cfabc59693Affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to before ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17Affected
LinuxLinux
  • 6.4Affected
  • before 6.4Not affected
  • 6.6.102 through 6.6.*Not affected
  • 6.12.42 through 6.12.*Not affected
  • 6.15.10 through 6.15.*Not affected
  • 6.16.1 through 6.16.*Not affected
  • 6.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.