Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39945

HIGH 7.8EPSS 9%

cnic: Fix use-after-free bugs in cnic_delete_task

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= fdf24086f4752aee5dfb40143c736250df017820, < fde6e73189f40ebcf0633aed2b68e731c25f3aa3; >= fdf24086f4752aee5dfb40143c736250df017820, < 7b6a5b0a6b392263c3767fc945b311ea04b34bbd; >= fdf24086f4752aee5dfb40143c736250df017820, < 0405055930264ea8fd26f4131466fa7652e5e47d; >= fdf24086f4752aee5dfb40143c736250df017820, < e1fcd4a9c09feac0902a65615e866dbf22616125; >= fdf24086f4752aee5dfb40143c736250df017820, < 8eeb2091e72d75df8ceaa2172638d61b4cf8929a; >= fdf24086f4752aee5dfb40143c736250df017820, < 6e33a7eed587062ca8161ad1f4584882a860d697; >= fdf24086f4752aee5dfb40143c736250df017820, < 0627e1481676669cae2df0d85b5ff13e7d24c390; >= fdf24086f4752aee5dfb40143c736250df017820, < cfa7d9b1e3a8604afc84e9e51d789c29574fb216
  • Anyone running Linux 2.6.37

Vulnerability facts

Affected
Linux >= fdf24086f4752aee5dfb40143c736250df017820, < fde6e73189f40ebcf0633aed2b68e731c25f3aa3; >= fdf24086f4752aee5dfb40143c736250df017820, < 7b6a5b0a6b392263c3767fc945b311ea04b34bbd; >= fdf24086f4752aee5dfb40143c736250df017820, < 0405055930264ea8fd26f4131466fa7652e5e47d; >= fdf24086f4752aee5dfb40143c736250df017820, < e1fcd4a9c09feac0902a65615e866dbf22616125; >= fdf24086f4752aee5dfb40143c736250df017820, < 8eeb2091e72d75df8ceaa2172638d61b4cf8929a; >= fdf24086f4752aee5dfb40143c736250df017820, < 6e33a7eed587062ca8161ad1f4584882a860d697; >= fdf24086f4752aee5dfb40143c736250df017820, < 0627e1481676669cae2df0d85b5ff13e7d24c390; >= fdf24086f4752aee5dfb40143c736250df017820, < cfa7d9b1e3a8604afc84e9e51d789c29574fb216; Linux 2.6.37
Fixed in
Linux 7b6a5b0a6b392263c3767fc945b311ea04b34bbd, Linux 0405055930264ea8fd26f4131466fa7652e5e47d, Linux 8eeb2091e72d75df8ceaa2172638d61b4cf8929a, Linux 6e33a7eed587062ca8161ad1f4584882a860d697, Linux 0627e1481676669cae2df0d85b5ff13e7d24c390
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.24% chance of exploitation in 30 days (percentile 9, 2026-11-26)
CWE
CWE-416
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: cnic: Fix use-after-free bugs in cnic_delete_task The original code uses cancel_delayed_work() in cnic_cm_stop_bnx2x_hw(), which does not guarantee that the delayed work item 'delete_task' has fully completed if it was already running. Additionally, the delayed work item is cyclic, the flush_workqueue() in cnic_cm_stop_bnx2x_hw() only blocks and waits for work items that were already queued to the workqueue prior to its invocation. Any work items submitted after flush_workqueue() is called are not included in the set of tasks that the flush operation awaits. This means that after the cyclic work items have finished executing, a delayed work item may still exist in the workqueue. This leads to use-after-free scenarios where the cnic_dev is deallocated by cnic_free_dev(), while delete_task remains active and attempt to dereference cnic_dev in cnic_delete_task(). A typical race condition is illustrated below: CPU 0 (cleanup) | CPU 1 (delayed work callback) cnic_netdev_event() | cnic_stop_hw() | cnic_delete_task() cnic_cm_stop_bnx2x_hw() | ... cancel_delayed_work() | /* the queue_delayed_work() flush_workqueue() | executes after flush_workqueue()*/ | queue_delayed_work() cnic_free_dev(dev)//free | cnic_delete_task() //new instance | dev = cp->dev; //use Replace cancel_delayed_work() with cancel_delayed_work_sync() to ensure that the cyclic delayed work item is properly canceled and that any ongoing execution of the work item completes before the cnic_dev is deallocated. Furthermore, since cancel_delayed_work_sync() uses __flush_work(work, true) to synchronously wait for any currently executing instance of the work item to finish, the flush_workqueue() becomes redundant and should be removed. This bug was identified through static analysis. To reproduce the issue and validate the fix, I simulated the cnic PCI device in QEMU and introduced intentional delays — such as inserting calls to ssleep() within the cnic_delete_task() function — to increase the likelihood of triggering the bug.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= fdf24086f4752aee5dfb40143c736250df017820, < fde6e73189f40ebcf0633aed2b68e731c25f3aa3; >= fdf24086f4752aee5dfb40143c736250df017820, < 7b6a5b0a6b392263c3767fc945b311ea04b34bbd; >= fdf24086f4752aee5dfb40143c736250df017820, < 0405055930264ea8fd26f4131466fa7652e5e47d; >= fdf24086f4752aee5dfb40143c736250df017820, < e1fcd4a9c09feac0902a65615e866dbf22616125; >= fdf24086f4752aee5dfb40143c736250df017820, < 8eeb2091e72d75df8ceaa2172638d61b4cf8929a; >= fdf24086f4752aee5dfb40143c736250df017820, < 6e33a7eed587062ca8161ad1f4584882a860d697; >= fdf24086f4752aee5dfb40143c736250df017820, < 0627e1481676669cae2df0d85b5ff13e7d24c390; >= fdf24086f4752aee5dfb40143c736250df017820, < cfa7d9b1e3a8604afc84e9e51d789c29574fb216—cvelist
Linux2.6.37—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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

Details: https://flawdb.com/CVE-2025-39945.md
Affected: Linux >= fdf24086f4752aee5dfb40143c736250df017820, < fde6e73189f40ebcf0633aed2b68e731c25f3aa3; >= fdf24086f4752aee5dfb40143c736250df017820, < 7b6a5b0a6b392263c3767fc945b311ea04b34bbd; >= fdf24086f4752aee5dfb40143c736250df017820, < 0405055930264ea8fd26f4131466fa7652e5e47d; >= fdf24086f4752aee5dfb401…
Fixed in: Linux 7b6a5b0a6b392263c3767fc945b311ea04b34bbd, Linux 0405055930264ea8fd26f4131466fa7652e5e47d, Linux 8eeb2091e72d75df8ceaa2172638d61b4cf8929a, Linux 6e33a7eed587062ca8161ad1f4584882a860d697, Linux 0627e1481676669cae2df0d85b5ff13e7d24c390

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.

References

FAQ

Is CVE-2025-39945 being exploited?

There is no confirmed exploitation: CVE-2025-39945 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-2025-39945?

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

Which versions are affected by CVE-2025-39945?

Linux >= fdf24086f4752aee5dfb40143c736250df017820, < fde6e73189f40ebcf0633aed2b68e731c25f3aa3; >= fdf24086f4752aee5dfb40143c736250df017820, < 7b6a5b0a6b392263c3767fc945b311ea04b34bbd; >= fdf24086f4752aee5dfb40143c736250df017820, < 0405055930264ea8fd26f4131466fa7652e5e47d; >= fdf24086f4752aee5dfb40143c736250df017820, < e1fcd4a9c09feac0902a65615e866dbf22616125; >= fdf24086f4752aee5dfb40143c736250df017820, < 8eeb2091e72d75df8ceaa2172638d61b4cf8929a; >= fdf24086f4752aee5dfb40143c736250df017820, < 6e33a7eed587062ca8161ad1f4584882a860d697; >= fdf24086f4752aee5dfb40143c736250df017820, < 0627e1481676669cae2df0d85b5ff13e7d24c390; >= fdf24086f4752aee5dfb40143c736250df017820, < cfa7d9b1e3a8604afc84e9e51d789c29574fb216; Linux 2.6.37.

Is there a fix for CVE-2025-39945?

Yes. Fixed in Linux 7b6a5b0a6b392263c3767fc945b311ea04b34bbd, Linux 0405055930264ea8fd26f4131466fa7652e5e47d, Linux 8eeb2091e72d75df8ceaa2172638d61b4cf8929a, Linux 6e33a7eed587062ca8161ad1f4584882a860d697, Linux 0627e1481676669cae2df0d85b5ff13e7d24c390. No fix listed yet: follow the vendor advisory.

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

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.

Sponsors