# CVE-2026-23041: bnxt\_en: Fix NULL pointer crash in bnxt\_ptp\_enable during error cleanup

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **Published:** 2026-02-04T16:00:24.710Z
- **Modified:** 2026-06-17T10:20:45.650Z

## Who should check

- Anyone running Linux \>= a60fc3294a377204664b5484e4a487fa124155da, \< 0174d5466caefc22f03a36c43b2a3cce7e332627; \>= a60fc3294a377204664b5484e4a487fa124155da, \< 3358995b1a7f9dcb52a56ec8251570d71024dad0
- Anyone running Linux 6.18

## Description

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

bnxt\_en: Fix NULL pointer crash in bnxt\_ptp\_enable during error cleanup

When bnxt\_init\_one() fails during initialization (e.g.,
bnxt\_init\_int\_mode returns -ENODEV), the error path calls
bnxt\_free\_hwrm\_resources() which destroys the DMA pool and sets
bp-\>hwrm\_dma\_pool to NULL. Subsequently, bnxt\_ptp\_clear() is called,
which invokes ptp\_clock\_unregister().

Since commit a60fc3294a37 ("ptp: rework ptp\_clock\_unregister() to
disable events"), ptp\_clock\_unregister() now calls
ptp\_disable\_all\_events(), which in turn invokes the driver's .enable()
callback (bnxt\_ptp\_enable()) to disable PTP events before completing the
unregistration.

bnxt\_ptp\_enable() attempts to send HWRM commands via bnxt\_ptp\_cfg\_pin()
and bnxt\_ptp\_cfg\_event(), both of which call hwrm\_req\_init(). This
function tries to allocate from bp-\>hwrm\_dma\_pool, causing a NULL
pointer dereference:

  bnxt\_en 0000:01:00.0 (unnamed net\_device) (uninitialized): bnxt\_init\_int\_mode err: ffffffed
  KASAN: null-ptr-deref in range \[0x0000000000000028-0x000000000000002f\]
  Call Trace:
   \_\_hwrm\_req\_init (drivers/net/ethernet/broadcom/bnxt/bnxt\_hwrm.c:72)
   bnxt\_ptp\_enable (drivers/net/ethernet/broadcom/bnxt/bnxt\_ptp.c:323 drivers/net/ethernet/broadcom/bnxt/bnxt\_ptp.c:517)
   ptp\_disable\_all\_events (drivers/ptp/ptp\_chardev.c:66)
   ptp\_clock\_unregister (drivers/ptp/ptp\_clock.c:518)
   bnxt\_ptp\_clear (drivers/net/ethernet/broadcom/bnxt/bnxt\_ptp.c:1134)
   bnxt\_init\_one (drivers/net/ethernet/broadcom/bnxt/bnxt.c:16889)

Lines are against commit f8f9c1f4d0c7 ("Linux 6.19-rc3")

Fix this by clearing and unregistering ptp (bnxt\_ptp\_clear()) before
freeing HWRM resources.

## Affected and fixed versions

- Linux: \>= a60fc3294a377204664b5484e4a487fa124155da, \< 0174d5466caefc22f03a36c43b2a3cce7e332627; \>= a60fc3294a377204664b5484e4a487fa124155da, \< 3358995b1a7f9dcb52a56ec8251570d71024dad0 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 3358995b1a7f9dcb52a56ec8251570d71024dad0 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-23041.md
Affected: Linux >= a60fc3294a377204664b5484e4a487fa124155da, < 0174d5466caefc22f03a36c43b2a3cce7e332627; >= a60fc3294a377204664b5484e4a487fa124155da, < 3358995b1a7f9dcb52a56ec8251570d71024dad0; Linux 6.18
Fixed in: Linux 0174d5466caefc22f03a36c43b2a3cce7e332627, Linux 3358995b1a7f9dcb52a56ec8251570d71024dad0

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-2026-23041 being exploited?

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

### How serious is CVE-2026-23041?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-23041?

Linux \>= a60fc3294a377204664b5484e4a487fa124155da, \< 0174d5466caefc22f03a36c43b2a3cce7e332627; \>= a60fc3294a377204664b5484e4a487fa124155da, \< 3358995b1a7f9dcb52a56ec8251570d71024dad0; Linux 6.18.

### Is there a fix for CVE-2026-23041?

Yes. Fixed in Linux 0174d5466caefc22f03a36c43b2a3cce7e332627, Linux 3358995b1a7f9dcb52a56ec8251570d71024dad0. Upgrade Linux to 3358995b1a7f9dcb52a56ec8251570d71024dad0 or later.

### How do I check if I'm affected by CVE-2026-23041?

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

- other: <https://git.kernel.org/stable/c/0174d5466caefc22f03a36c43b2a3cce7e332627>
- other: <https://git.kernel.org/stable/c/3358995b1a7f9dcb52a56ec8251570d71024dad0>

## 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-2026-23041>

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