net/sched: mqprio: fix stack out-of-bounds write in tc entry parsing
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's mqprio tc entry parser accepts an index of 16 for an array that holds only indices 0–15. This can cause a 4-byte out-of-bounds stack write. The input does not specify the access requirements or whether user interaction is needed.
Engineers running the Linux kernel should check whether their version includes the mqprio tc entry parsing fix; affected versions are not specified.