net: dsa: qca8k: reset cpu port on MTU change
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.545.18.115.19In the Linux kernel, the following vulnerability has been resolved:
net: dsa: qca8k: reset cpu port on MTU change
It was discovered that the Documentation lacks of a fundamental detail on how to correctly change the MAX_FRAME_SIZE of the switch.
In fact if the MAX_FRAME_SIZE is changed while the cpu port is on, the switch panics and cease to send any packet. This cause the mgmt ethernet system to not receive any packet (the slow fallback still works) and makes the device not reachable. To recover from this a switch reset is required.
To correctly handle this, turn off the cpu ports before changing the MAX_FRAME_SIZE and turn on again after the value is applied.
From the CVE record · Linux
The Linux kernel qca8k switch driver can change MAX_FRAME_SIZE while a CPU port is on, causing the switch to stop sending packets and the device to become unreachable through management Ethernet. This occurs during an MTU change; the input does not specify an attacker, authentication requirement, or user-interaction requirement. A switch reset is required to recover.
Engineers running Linux systems with a qca8k switch should check their kernel; affected versions are not specified.