All reports
Medium

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-72140

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel, specifically within the i2c mlxbf driver. This use-after-free vulnerability occurs in the mlxbf_i2c_init_resource() function. When an error occurs during resource mapping, the system attempts to free a resource before properly handling its error code. This premature freeing can lead to a use-after-free condition, potentially allowing a local attacker to cause a system crash (denial of service).