CVE-2022-48932

net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte

State
Published
Severity
7.8 High
Published
Aug 22, 2024
Updated
Aug 5, 2026
Reserved
Aug 21, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte

When adding a rule with 32 destinations, we hit the following out-of-band access issue:

BUG: KASAN: slab-out-of-bounds in mlx5_cmd_dr_create_fte+0x18ee/0x1e70

This patch fixes the issue by both increasing the allocated buffers to accommodate for the needed actions and by checking the number of actions to prevent this issue when a rule with too many actions is provided.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1ffd498901c1134a7cbecf5409e12c064c39cef9 to before 4ad319cdfbe555b4ff67bc608736c46a6930c848Affected
  • 1ffd498901c1134a7cbecf5409e12c064c39cef9 to before 0aec12d97b2036af0946e3d582144739860ac07bAffected
LinuxLinux
  • 5.16Affected
  • before 5.16Not affected
  • 5.16.12 through 5.16.*Not affected
  • 5.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.