RDMA/nldev: validate dynamic counter attribute length
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3c3c1f1416392382faa0238e76a70d7810aab2ef · < 74f49255492a62658f36bf2578d7916f1c6ffad1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/nldev: validate dynamic counter attribute length
RDMA_NLDEV_ATTR_STAT_HWCOUNTERS is a nested attribute whose children are consumed directly with nla_get_u32(). The top-level policy validates only the container, so it does not establish the fixed shape of each child.
Require every child payload to be exactly one u32 before reading it.
From the CVE record · Linux
RDMA/nldev does not validate the length of child attributes in RDMA_NLDEV_ATTR_STAT_HWCOUNTERS before reading them as u32 values. A malformed child attribute can therefore be read without the required length check; the input does not specify the access or authentication conditions needed to submit one.
Engineers running the Linux kernel should check their RDMA/nldev exposure; affected versions are not specified.