Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2025-38568

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to < 39491e859fd494d0b51adc5c7d54c8a7dcf1d198affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to < d00e4125680f7074c4f42ce3c297336f23128e70affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to < 66fc2ebdd9d5dd6e5a9c7edeace5a61a0ab2cd86affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to < f1a9dbcb7d17bf0abb325cdc984957cfabc59693affected
  • f62af20bed2d9e824f51cfc97ff01bc261f40e58 to < ffd2dc4c6c49ff4f1e5d34e454a6a55608104c17affected

Linux Linux

Default version status: affected

  • 6.4affected
  • 0 to < 6.4unaffected
  • 6.6.102 to ≤ 6.6.*unaffected
  • 6.12.42 to ≤ 6.12.*unaffected
  • 6.15.10 to ≤ 6.15.*unaffected
  • 6.16.1 to ≤ 6.16.*unaffected
  • 6.17 to ≤ *unaffected

References