CVE-2026-72140

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

State
Published
Severity
Not scored
Published
Aug 15, 2026
Updated
Aug 17, 2026
Reserved
Aug 9, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before 6a108c9f5a81bb7b29dbb1398be0089655b6bfd2Affected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before c4d9b6a0c9645366d9e4af8a6ac8347bd4c841aaAffected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before b398cbbbb9dd76210682a8c9aabd34c5168800b9Affected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before 5290a52533e09c38374963f4bb0b35121fe555c7Affected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before ce960a1b2caa4ad08291f28d8bcf17ad5a864e54Affected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before e6a395a71f4652261d09b572a03c96052662a056Affected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before fb267770bf822064f510c9b46743f533d8fa8a5fAffected
  • b5b5b32081cd206baa6e58cca7f112d9723785d6 to before 71356737a7a55c76fee847563e3d33f8e6dc6b6dAffected
LinuxLinux
  • 5.10Affected
  • before 5.10Not affected
  • 5.10.261 through 5.10.*Not affected
  • 5.15.212 through 5.15.*Not affected
  • 6.1.178 through 6.1.*Not affected
  • 6.6.145 through 6.6.*Not affected
  • 6.12.97 through 6.12.*Not affected
  • 6.18.40 through 6.18.*Not affected
  • 7.1.5 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.