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-38682

HIGH 7.8EPSS 9%

i2c: core: Fix double-free of fwnode in i2c_unregister_device()

Mitigation

  • Upgrade Linux to 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2 or later.

Who should check

  • Anyone running Linux >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < ffe02f7c4e36090154646612e67d331832f92037; >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2
  • Anyone running Linux 6.16

Vulnerability facts

Affected
Linux >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < ffe02f7c4e36090154646612e67d331832f92037; >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2; Linux 6.16
Fixed in
Linux 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2
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, NVD)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-415
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: i2c: core: Fix double-free of fwnode in i2c_unregister_device() Before commit df6d7277e552 ("i2c: core: Do not dereference fwnode in struct device"), i2c_unregister_device() only called fwnode_handle_put() on of_node-s in the form of calling of_node_put(client->dev.of_node). But after this commit the i2c_client's fwnode now unconditionally gets fwnode_handle_put() on it. When the i2c_client has no primary (ACPI / OF) fwnode but it does have a software fwnode, the software-node will be the primary node and fwnode_handle_put() will put() it. But for the software fwnode device_remove_software_node() will also put() it leading to a double free: [ 82.665598] ------------[ cut here ]------------ [ 82.665609] refcount_t: underflow; use-after-free. [ 82.665808] WARNING: CPU: 3 PID: 1502 at lib/refcount.c:28 refcount_warn_saturate+0xba/0x11 ... [ 82.666830] RIP: 0010:refcount_warn_saturate+0xba/0x110 ... [ 82.666962] <TASK> [ 82.666971] i2c_unregister_device+0x60/0x90 Fix this by not calling fwnode_handle_put() when the primary fwnode is a software-node.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < ffe02f7c4e36090154646612e67d331832f92037; >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2—cvelist
Linux6.16—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-38682. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38682.md
Affected: Linux >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < ffe02f7c4e36090154646612e67d331832f92037; >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2; Linux 6.16
Fixed in: Linux 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2

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

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

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

Which versions are affected by CVE-2025-38682?

Linux >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < ffe02f7c4e36090154646612e67d331832f92037; >= df6d7277e5525d6cce63127dd93ebec4c6354fa0, < 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2; Linux 6.16.

Is there a fix for CVE-2025-38682?

Yes. Fixed in Linux 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2. Upgrade Linux to 1c24e5fc0c7096e00c202a6a3e0c342c1afb47c2 or later.

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

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