# CVE-2025-21650: net: hns3: fixed hclge\_fetch\_pf\_reg accesses bar space out of bounds issue

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-01-19T10:18:07.976Z
- **Modified:** 2026-10-21T13:17:54.690Z

## Who should check

- Anyone running Linux \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< a85246635466752b9af72188e4a839541120d952; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 0575baa733fc4219f230aef22d5bc35d922f1e9a; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 7997ddd46c54408bcba5e37fe18b4d832e45d4d4; df34972a33d268a7113c119fe4e4b07a6819aa0c; 2b1fff96a297034f03466cfecda9824adafe16ed; \>= 6.4.16, \< 6.5; \>= 6.5.3, \< 6.6
- Anyone running Linux 6.6

## Description

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

net: hns3: fixed hclge\_fetch\_pf\_reg accesses bar space out of bounds issue

The TQP BAR space is divided into two segments. TQPs 0-1023 and TQPs
1024-1279 are in different BAR space addresses. However,
hclge\_fetch\_pf\_reg does not distinguish the tqp space information when
reading the tqp space information. When the number of TQPs is greater
than 1024, access bar space overwriting occurs.
The problem of different segments has been considered during the
initialization of tqp.io\_base. Therefore, tqp.io\_base is directly used
when the queue is read in hclge\_fetch\_pf\_reg.

The error message:

Unable to handle kernel paging request at virtual address ffff800037200000
pc : hclge\_fetch\_pf\_reg+0x138/0x250 \[hclge\]
lr : hclge\_get\_regs+0x84/0x1d0 \[hclge\]
Call trace:
 hclge\_fetch\_pf\_reg+0x138/0x250 \[hclge\]
 hclge\_get\_regs+0x84/0x1d0 \[hclge\]
 hns3\_get\_regs+0x2c/0x50 \[hns3\]
 ethtool\_get\_regs+0xf4/0x270
 dev\_ethtool+0x674/0x8a0
 dev\_ioctl+0x270/0x36c
 sock\_do\_ioctl+0x110/0x2a0
 sock\_ioctl+0x2ac/0x530
 \_\_arm64\_sys\_ioctl+0xa8/0x100
 invoke\_syscall+0x4c/0x124
 el0\_svc\_common.constprop.0+0x140/0x15c
 do\_el0\_svc+0x30/0xd0
 el0\_svc+0x1c/0x2c
 el0\_sync\_handler+0xb0/0xb4
 el0\_sync+0x168/0x180

## Affected and fixed versions

- Linux: \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< a85246635466752b9af72188e4a839541120d952; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 0575baa733fc4219f230aef22d5bc35d922f1e9a; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 7997ddd46c54408bcba5e37fe18b4d832e45d4d4; df34972a33d268a7113c119fe4e4b07a6819aa0c; 2b1fff96a297034f03466cfecda9824adafe16ed; \>= 6.4.16, \< 6.5; \>= 6.5.3, \< 6.6 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- Upgrade Linux to 6.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21650. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21650.md
Affected: Linux >= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, < a85246635466752b9af72188e4a839541120d952; >= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, < 0575baa733fc4219f230aef22d5bc35d922f1e9a; >= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, < 7997ddd46c54408bcba5e37fe18b4d832e45d4d4; df34972a33d268a7113c119fe4…
Fixed in: Linux 0575baa733fc4219f230aef22d5bc35d922f1e9a, Linux 7997ddd46c54408bcba5e37fe18b4d832e45d4d4, Linux 6.5, Linux 6.6

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21650 being exploited?

There is no confirmed exploitation: CVE-2025-21650 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21650?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21650?

Linux \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< a85246635466752b9af72188e4a839541120d952; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 0575baa733fc4219f230aef22d5bc35d922f1e9a; \>= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \< 7997ddd46c54408bcba5e37fe18b4d832e45d4d4; df34972a33d268a7113c119fe4e4b07a6819aa0c; 2b1fff96a297034f03466cfecda9824adafe16ed; \>= 6.4.16, \< 6.5; \>= 6.5.3, \< 6.6; Linux 6.6.

### Is there a fix for CVE-2025-21650?

Yes. Fixed in Linux 0575baa733fc4219f230aef22d5bc35d922f1e9a, Linux 7997ddd46c54408bcba5e37fe18b4d832e45d4d4, Linux 6.5, Linux 6.6. Upgrade Linux to 6.6 or later.

### How do I check if I'm affected by CVE-2025-21650?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0575baa733fc4219f230aef22d5bc35d922f1e9a>
- patch: <https://git.kernel.org/stable/c/7997ddd46c54408bcba5e37fe18b4d832e45d4d4>
- other: <https://git.kernel.org/stable/c/a85246635466752b9af72188e4a839541120d952>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21650>

HTML: <https://flawdb.com/CVE-2025-21650> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21650>
