CVE-2025-21650
kernel: net: hns3: fixed hclge_fetch_pf_reg accesses bar space out of bounds issue
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · January 19, 2025
Updated · October 22, 2026
Description
A flaw was found in the Linux kernel hns3 driver. hclge_fetch_pf_reg() reads TQP registers past the end of the BAR when the queue count is above 1024. A local user who can dump those registers can fault in kernel address space.
Statement
The issue only arises when the number of Transmit Queue Pairs (TQPs) exceeds 1024, which may not apply to all hardware configurations or typical use cases. Additionally, the vulnerability triggers an out-of-bounds access in the BAR space during register retrieval operations, such as those invoked by ethtool. This means the issue is not to be exploitable remotely, and limited to administrative tasks by privileged users.
Red Hat Enterprise Linux is not vulnerable to this CVE, as it does not affect the versions or configurations of the Linux kernel used in its distributions.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
CVSS / CWE
CVSS 3.1 · 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE-125 · Out-of-bounds Read