ethtool: coalesce: cap profile updates at NET_DIM_PARAMS_NUM_PROFILES
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ethtool: coalesce: cap profile updates at NET_DIM_PARAMS_NUM_PROFILES
ethnl_update_profile() walks the ETHTOOL_A_PROFILE_IRQ_MODERATION nest list with an index 'i' and writes new_profile[i++] without bounding i. The destination is kmemdup()'d at NET_DIM_PARAMS_NUM_PROFILES entries (5), but the Netlink nest count is entirely user-controlled. Netlink policies do not have support for constraining the number of nested entries (or number of multi-attr entries).
From the CVE record · Linux
The Linux kernel's ethtool coalesce profile update writes past a five-entry allocation when a Netlink request contains too many nested profile entries. An attacker able to submit such a request can trigger an out-of-bounds write; the input does not specify authentication requirements or user interaction.
Engineers running Linux kernels should check their versions against the vendor advisory; affected versions are not specified.