net/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent
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:
net/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent
A user is able to configure an arbitrary number of rx queues when creating an interface via netlink. This doesn't work for child PKEY interfaces because the child interface uses the parent receive channels.
Although the child shares the parent's receive channels, the number of rx queues is important for the channel_stats array: the parent's rx channel index is used to access the child's channel_stats. So the array has to be at least as large as the parent's rx queue size for the counting to work correctly and to prevent out of bound accesses.
This patch checks for the mentioned scenario and returns an error when trying to create the interface. The error is propagated to the user.
From the CVE record · Linux
Linux kernel net/mlx5e IPoIB child PKEY interfaces can have fewer receive queues than their parent, leaving the child’s channel_stats array too small. A local user creating an interface via netlink can trigger an out-of-bounds access; the input does not specify authentication requirements or user interaction.
Check Linux kernel deployments that use net/mlx5e IPoIB child PKEY interfaces; affected versions are not specified.