# CVE-2025-21649: net: hns3: fix kernel crash when 1588 is sent on HIP08 devices

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-01-19T10:18:06.911Z
- **Modified:** 2026-09-14T12:17:34.633Z

## Who should check

- Anyone running Linux \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 7b1b15058b177b0457ebf34b6664763cf2bbf712; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9d213ca0cb49e2d829f8338baf776f32cc8d9efa; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< f19ab3ef96d9626e5f1bdc56d3574c355e83d623; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9741e72b2286de8b38de9db685588ac421a95c87
- Anyone running Linux 5.14

## Description

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

net: hns3: fix kernel crash when 1588 is sent on HIP08 devices

Currently, HIP08 devices does not register the ptp devices, so the
hdev-\>ptp is NULL. But the tx process would still try to set hardware time
stamp info with SKBTX\_HW\_TSTAMP flag and cause a kernel crash.

\[  128.087798\] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018
...
\[  128.280251\] pc : hclge\_ptp\_set\_tx\_info+0x2c/0x140 \[hclge\]
\[  128.286600\] lr : hclge\_ptp\_set\_tx\_info+0x20/0x140 \[hclge\]
\[  128.292938\] sp : ffff800059b93140
\[  128.297200\] x29: ffff800059b93140 x28: 0000000000003280
\[  128.303455\] x27: ffff800020d48280 x26: ffff0cb9dc814080
\[  128.309715\] x25: ffff0cb9cde93fa0 x24: 0000000000000001
\[  128.315969\] x23: 0000000000000000 x22: 0000000000000194
\[  128.322219\] x21: ffff0cd94f986000 x20: 0000000000000000
\[  128.328462\] x19: ffff0cb9d2a166c0 x18: 0000000000000000
\[  128.334698\] x17: 0000000000000000 x16: ffffcf1fc523ed24
\[  128.340934\] x15: 0000ffffd530a518 x14: 0000000000000000
\[  128.347162\] x13: ffff0cd6bdb31310 x12: 0000000000000368
\[  128.353388\] x11: ffff0cb9cfbc7070 x10: ffff2cf55dd11e02
\[  128.359606\] x9 : ffffcf1f85a212b4 x8 : ffff0cd7cf27dab0
\[  128.365831\] x7 : 0000000000000a20 x6 : ffff0cd7cf27d000
\[  128.372040\] x5 : 0000000000000000 x4 : 000000000000ffff
\[  128.378243\] x3 : 0000000000000400 x2 : ffffcf1f85a21294
\[  128.384437\] x1 : ffff0cb9db520080 x0 : ffff0cb9db500080
\[  128.390626\] Call trace:
\[  128.393964\]  hclge\_ptp\_set\_tx\_info+0x2c/0x140 \[hclge\]
\[  128.399893\]  hns3\_nic\_net\_xmit+0x39c/0x4c4 \[hns3\]
\[  128.405468\]  xmit\_one.constprop.0+0xc4/0x200
\[  128.410600\]  dev\_hard\_start\_xmit+0x54/0xf0
\[  128.415556\]  sch\_direct\_xmit+0xe8/0x634
\[  128.420246\]  \_\_dev\_queue\_xmit+0x224/0xc70
\[  128.425101\]  dev\_queue\_xmit+0x1c/0x40
\[  128.429608\]  ovs\_vport\_send+0xac/0x1a0 \[openvswitch\]
\[  128.435409\]  do\_output+0x60/0x17c \[openvswitch\]
\[  128.440770\]  do\_execute\_actions+0x898/0x8c4 \[openvswitch\]
\[  128.446993\]  ovs\_execute\_actions+0x64/0xf0 \[openvswitch\]
\[  128.453129\]  ovs\_dp\_process\_packet+0xa0/0x224 \[openvswitch\]
\[  128.459530\]  ovs\_vport\_receive+0x7c/0xfc \[openvswitch\]
\[  128.465497\]  internal\_dev\_xmit+0x34/0xb0 \[openvswitch\]
\[  128.471460\]  xmit\_one.constprop.0+0xc4/0x200
\[  128.476561\]  dev\_hard\_start\_xmit+0x54/0xf0
\[  128.481489\]  \_\_dev\_queue\_xmit+0x968/0xc70
\[  128.486330\]  dev\_queue\_xmit+0x1c/0x40
\[  128.490856\]  ip\_finish\_output2+0x250/0x570
\[  128.495810\]  \_\_ip\_finish\_output+0x170/0x1e0
\[  128.500832\]  ip\_finish\_output+0x3c/0xf0
\[  128.505504\]  ip\_output+0xbc/0x160
\[  128.509654\]  ip\_send\_skb+0x58/0xd4
\[  128.513892\]  udp\_send\_skb+0x12c/0x354
\[  128.518387\]  udp\_sendmsg+0x7a8/0x9c0
\[  128.522793\]  inet\_sendmsg+0x4c/0x8c
\[  128.527116\]  \_\_sock\_sendmsg+0x48/0x80
\[  128.531609\]  \_\_sys\_sendto+0x124/0x164
\[  128.536099\]  \_\_arm64\_sys\_sendto+0x30/0x5c
\[  128.540935\]  invoke\_syscall+0x50/0x130
\[  128.545508\]  el0\_svc\_common.constprop.0+0x10c/0x124
\[  128.551205\]  do\_el0\_svc+0x34/0xdc
\[  128.555347\]  el0\_svc+0x20/0x30
\[  128.559227\]  el0\_sync\_handler+0xb8/0xc0
\[  128.563883\]  el0\_sync+0x160/0x180

## Affected and fixed versions

- Linux: \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 7b1b15058b177b0457ebf34b6664763cf2bbf712; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9d213ca0cb49e2d829f8338baf776f32cc8d9efa; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< f19ab3ef96d9626e5f1bdc56d3574c355e83d623; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9741e72b2286de8b38de9db685588ac421a95c87 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 9741e72b2286de8b38de9db685588ac421a95c87 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-21649. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21649.md
Affected: Linux >= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, < 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a; >= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, < 7b1b15058b177b0457ebf34b6664763cf2bbf712; >= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, < 9d213ca0cb49e2d829f8338baf776f32cc8d9efa; >= 0bf5eb788512187b744ef7f…
Fixed in: Linux 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a, Linux 7b1b15058b177b0457ebf34b6664763cf2bbf712, Linux 9d213ca0cb49e2d829f8338baf776f32cc8d9efa, Linux 9741e72b2286de8b38de9db685588ac421a95c87

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-21649 being exploited?

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

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

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

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

Linux \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 7b1b15058b177b0457ebf34b6664763cf2bbf712; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9d213ca0cb49e2d829f8338baf776f32cc8d9efa; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< f19ab3ef96d9626e5f1bdc56d3574c355e83d623; \>= 0bf5eb788512187b744ef7f79de835e6cbe85b9c, \< 9741e72b2286de8b38de9db685588ac421a95c87; Linux 5.14.

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

Yes. Fixed in Linux 4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a, Linux 7b1b15058b177b0457ebf34b6664763cf2bbf712, Linux 9d213ca0cb49e2d829f8338baf776f32cc8d9efa, Linux 9741e72b2286de8b38de9db685588ac421a95c87. Upgrade Linux to 9741e72b2286de8b38de9db685588ac421a95c87 or later.

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

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/f19ab3ef96d9626e5f1bdc56d3574c355e83d623>
- patch: <https://git.kernel.org/stable/c/9741e72b2286de8b38de9db685588ac421a95c87>
- other: <https://git.kernel.org/stable/c/4cfa9624d6bf2d68c3831e22b49ccffe3f0b556a>
- other: <https://git.kernel.org/stable/c/7b1b15058b177b0457ebf34b6664763cf2bbf712>
- other: <https://git.kernel.org/stable/c/9d213ca0cb49e2d829f8338baf776f32cc8d9efa>

## 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-21649>

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