rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 79aab093a0b5370d7fc4e99df75996f4744dc03f · < 206003c748b88890a910ef7142d18f77be57550b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rtnetlink: Correct nested IFLA_VF_VLAN_LIST attribute validation
Each attribute inside a nested IFLA_VF_VLAN_LIST is assumed to be a struct ifla_vf_vlan_info so the size of such attribute needs to be at least of sizeof(struct ifla_vf_vlan_info) which is 14 bytes. The current size validation in do_setvfinfo is against NLA_HDRLEN (4 bytes) which is less than sizeof(struct ifla_vf_vlan_info) so this validation is not enough and a too small attribute might be cast to a struct ifla_vf_vlan_info, this might result in an out of bands read access when accessing the saved (casted) entry in ivvl.
From the CVE record · Linux
The Linux kernel's rtnetlink code does not adequately validate the size of attributes nested in IFLA_VF_VLAN_LIST. If an attribute is smaller than the expected 14-byte structure, processing it may cause an out-of-bounds read. The input does not specify access or authentication requirements.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.