PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2025-21800: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21800 affects the Linux kernel's net/mlx5 Hardware Steering (HWS) component, specifically related to the HWS_SET32 macro handling. The vulnerability was discovered on February 27, 2025, and involves a shift-out-of-bounds issue when dealing with negative bit offsets in the definer's HWS_SET32 macro (NVD).

Technical details

The vulnerability occurs in the drivers/net/ethernet/mellanox/mlx5/core/steering/hws/definer.c file when the bit offset for HWS_SET32 macro is negative. This triggers an UBSAN (Undefined Behavior Sanitizer) complaint about shift-out-of-bounds at line 177:2, specifically when the shift exponent is -8. The issue was introduced in commit 74a778b4a63f which added definers handling functionality (Kernel Commit).

Impact

The vulnerability could potentially lead to undefined behavior in the Linux kernel's network stack, specifically affecting the Mellanox MLX5 driver's hardware steering functionality. However, the exact impact severity has not been fully assessed as the CVSS score was not yet assigned at the time of disclosure (NVD).

Mitigation and workarounds

A fix has been implemented by modifying the bit offset calculation in the HWS_SET32 macro. The correction changes the expression from '(bit_off) % BITS_IN_DW' to '(bit_off + BITS_IN_DW) % BITS_IN_DW' to properly handle negative offsets. This fix has been merged into the Linux kernel (Kernel Commit).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.12.13-1

Fixed

trixie

linux: 6.12.13-1

Fixed

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2023-7356HIGH8.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules
NoYesOct 21, 2026
CVE-2026-98862MEDIUM6
  • Linux Kernel logoLinux Kernel
  • python3-perf
NoYesOct 18, 2026
CVE-2026-98859MEDIUM5.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k
NoYesOct 18, 2026
CVE-2026-98861MEDIUM4.7
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-internal
NoYesOct 18, 2026
CVE-2026-98863NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-devel-matched
NoYesOct 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management