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

i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource()

If devm_platform_get_and_ioremap_resource() returns an error,
mlxbf_i2c_init_resource() frees tmp_res before reading tmp_res->io to
get the error code. This results in a use-after-free.

Save the error code before freeing tmp_res.
Published: 2026-08-15
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the Linux kernel’s I2C mlxbf driver. During initialization, if devm_platform_get_and_ioremap_resource() fails, mlxbf_i2c_init_resource() frees the temporary resource before attempting to read its I/O address. The code therefore dereferences freed memory, creating a use‑after‑free condition that can be triggered by a local device operator. This bug can cause a kernel crash and, depending on system configuration, may allow manipulation of memory that could elevate privileges.

Affected Systems

All Linux kernel builds that include the mlxbf I2C driver are affected. No specific kernel releases or version numbers are listed, so the vulnerability applies broadly to any kernel containing the vulnerable code path.

Risk and Exploitability

There is no CVSS score or EPSS rating available and the issue is not listed in the CISA KEV catalog, so quantitative risk is unclear. The exploit appears to require local access to the I2C mlxbf device and the ability to influence the driver’s failure path, suggesting a local, privileged‑level attack vector. At present the most evident risk is a denial of service via kernel crash, but the use‑after‑free nature of the defect means that a more severe compromise cannot be ruled out.

Generated by OpenCVE AI on August 15, 2026 at 08:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that incorporates the mlxbf I2C driver patch (the relevant commits can be found at https://git.kernel.org/stable/c/5290a52533e09c38374963f4bb0b35121fe555c7 and related patches).
  • If an immediate kernel upgrade is not feasible, unbind or disable the mlxbf I2C controller device by altering the device tree or system configuration to prevent the driver from loading until a patch is available.
  • After applying the update or disabling the driver, restart the affected system to ensure the vulnerable code path is inactive.

Generated by OpenCVE AI on August 15, 2026 at 08:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource() If devm_platform_get_and_ioremap_resource() returns an error, mlxbf_i2c_init_resource() frees tmp_res before reading tmp_res->io to get the error code. This results in a use-after-free. Save the error code before freeing tmp_res.
Title i2c: mlxbf: Fix use-after-free in mlxbf_i2c_init_resource()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-17T05:08:58.385Z

Reserved: 2026-08-09T03:40:39.908Z

Link: CVE-2026-72140

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:31.587

Modified: 2026-08-17T06:18:13.963

Link: CVE-2026-72140

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T15:15:03Z

Weaknesses