# CVE-2025-39810: bnxt\_en: Fix memory corruption when FW resources change during ifdown

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2025-09-16T13:00:12.677Z
- **Modified:** 2026-10-30T13:18:09.857Z

## Who should check

- Anyone running Linux \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< c0082a8947cf1a543013346d10c1857f0c57db83; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< dc797a4bbbcac6d19e6e2508e4df685755cd94a5; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< d00e98977ef519280b075d783653e2c492fffbb6; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 9ab6a9950f152e094395d2e3967f889857daa185; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 2747328ba2714f1a7454208dbbc1dc0631990b4a
- Anyone running Linux 5.4

## Description

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

bnxt\_en: Fix memory corruption when FW resources change during ifdown

bnxt\_set\_dflt\_rings() assumes that it is always called before any TC has
been created.  So it doesn't take bp-\>num\_tc into account and assumes
that it is always 0 or 1.

In the FW resource or capability change scenario, the FW will return
flags in bnxt\_hwrm\_if\_change() that will cause the driver to
reinitialize and call bnxt\_cancel\_reservations().  This will lead to
bnxt\_init\_dflt\_ring\_mode() calling bnxt\_set\_dflt\_rings() and bp-\>num\_tc
may be greater than 1.  This will cause bp-\>tx\_ring\[\] to be sized too
small and cause memory corruption in bnxt\_alloc\_cp\_rings().

Fix it by properly scaling the TX rings by bp-\>num\_tc in the code
paths mentioned above.  Add 2 helper functions to determine
bp-\>tx\_nr\_rings and bp-\>tx\_nr\_rings\_per\_tc.

## Affected and fixed versions

- Linux: \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< c0082a8947cf1a543013346d10c1857f0c57db83; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< dc797a4bbbcac6d19e6e2508e4df685755cd94a5; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< d00e98977ef519280b075d783653e2c492fffbb6; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 9ab6a9950f152e094395d2e3967f889857daa185; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 2747328ba2714f1a7454208dbbc1dc0631990b4a (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-39810.md
Affected: Linux >= ec5d31e3c15d5233b491400133c67f78a320062c, < c0082a8947cf1a543013346d10c1857f0c57db83; >= ec5d31e3c15d5233b491400133c67f78a320062c, < dc797a4bbbcac6d19e6e2508e4df685755cd94a5; >= ec5d31e3c15d5233b491400133c67f78a320062c, < d00e98977ef519280b075d783653e2c492fffbb6; >= ec5d31e3c15d5233b491400…
Fixed in: Linux 9ab6a9950f152e094395d2e3967f889857daa185, Linux 2747328ba2714f1a7454208dbbc1dc0631990b4a

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

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

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

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

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

Linux \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< c0082a8947cf1a543013346d10c1857f0c57db83; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< dc797a4bbbcac6d19e6e2508e4df685755cd94a5; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< d00e98977ef519280b075d783653e2c492fffbb6; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 9ab6a9950f152e094395d2e3967f889857daa185; \>= ec5d31e3c15d5233b491400133c67f78a320062c, \< 2747328ba2714f1a7454208dbbc1dc0631990b4a; Linux 5.4.

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

Yes. Fixed in Linux 9ab6a9950f152e094395d2e3967f889857daa185, Linux 2747328ba2714f1a7454208dbbc1dc0631990b4a. Upgrade Linux to 2747328ba2714f1a7454208dbbc1dc0631990b4a or later.

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

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/d00e98977ef519280b075d783653e2c492fffbb6>
- patch: <https://git.kernel.org/stable/c/9ab6a9950f152e094395d2e3967f889857daa185>
- patch: <https://git.kernel.org/stable/c/2747328ba2714f1a7454208dbbc1dc0631990b4a>
- other: <https://git.kernel.org/stable/c/c0082a8947cf1a543013346d10c1857f0c57db83>
- other: <https://git.kernel.org/stable/c/dc797a4bbbcac6d19e6e2508e4df685755cd94a5>

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

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