net: enetc: check the number of BDs needed for xdp_frame
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 · < 555c5475e787802eeae0d2b91c2f66c330db2767| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: enetc: check the number of BDs needed for xdp_frame
The size of xdp_redirect_arr array is ENETC_MAX_SKB_FRAGS. However, the number of fragments contained in xdp_frame may be greater than or equal to ENETC_MAX_SKB_FRAGS, which will cause the access to xdp_redirect_arr to be out of bounds.
From the CVE record · Linux
The Linux kernel’s enetc driver can access the xdp_redirect_arr array out of bounds when an xdp_frame contains at least ENETC_MAX_SKB_FRAGS fragments. The input does not specify what an attacker can achieve or whether exploitation requires network access, authentication, or user interaction.
Anyone running the Linux kernel with the enetc driver should check their version; affected versions are not specified.