net: prestera: validate firmware header length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 4c2703dfd7fabb0824b3bc345f9fa47e33248c14 · < 363e048a9d0a6c245cbc348c8a220170afed046a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: prestera: validate firmware header length
prestera_fw_hdr_parse() reads the firmware header before checking that the firmware image contains that header.
Reject images shorter than struct prestera_fw_header before decoding the magic and version fields.
From the CVE record · Linux
The prestera firmware parser reads the firmware header before checking that the image is long enough to contain it. A short firmware image can therefore cause an out-of-bounds read; the input does not specify how an attacker could supply one or whether authentication or user interaction is required.
Teams running Linux kernels with the prestera driver should check their deployments; affected versions are not specified.