In the Linux kernel, the following vulnerability has been resolved:
vdpa: Add features attr to vdpa_nl_policy for nlattr length check
The vdpa_nl_policy structure is used to validate the nlattr when parsing the incoming nlmsg. It will ensure the attribute being described produces a valid nlattr pointer in info->attrs before entering into each handler in vdpa_nl_ops.
That is to say, the missing part in vdpa_nl_policy may lead to illegal nlattr after parsing, which could lead to OOB read just like CVE-2023-3773.
This patch adds the missing nla_policy for vdpa features attr to avoid such bugs.
| Software | From | Fixed in |
|---|---|---|
| linux / linux_kernel | 6.1 | 6.1.47 |
| linux / linux_kernel | 6.2 | 6.4.12 |
| linux / linux_kernel | 6.5-rc1 | 6.5-rc1.x |
| linux / linux_kernel | 6.5-rc2 | 6.5-rc2.x |
| linux / linux_kernel | 6.5-rc3 | 6.5-rc3.x |
| linux / linux_kernel | 6.5-rc4 | 6.5-rc4.x |
| linux / linux_kernel | 6.5-rc5 | 6.5-rc5.x |
| linux / linux_kernel | 6.5-rc6 | 6.5-rc6.x |