CVE-2026-80894

iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace

State
Published
Severity
Not scored
Published
Sep 4, 2026
Updated
Sep 4, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

Description

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

iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace

iommufd_hwpt_replace_device() calls:

iommufd_auto_response_faults(hwpt, old_handle);

passing the *new* hwpt together with the handle of the device's *old* domain. This should be a parameter mismatch:

1. Semantically, iommufd_auto_response_faults(x, handle) scans x->fault's deliver list and response xarray for groups matching "handle". A group is queued under the hwpt that was attached at fault-delivery time. old_handle is fetched *before* the domain switch, so its group lives on old->fault, not on the new hwpt->fault.

2. Historically, the first argument was "old". The routine was introduced by commit b7d8833677ba ("iommufd: Fault-capable hwpt attach/detach/replace") as __fault_domain_replace_dev() in fault.c, correctly calling iommufd_auto_response_faults(old, curr). Commit fb21b1568ada ("iommufd: Make attach_handle generic than fault specific") moved this into iommufd_hwpt_replace_device() in device.c and swapped it to "hwpt". This should be a refactor regression, not an intentional change.

Fix this by passing "old" instead.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6d11543bf37abdf60b8e6022a62fccfb82a5fe2e to before adb87155b67f9759ff010c0a99559f5bffa45dcfAffected
  • fb21b1568adaa76af7a8c853f37c60fba8b28661 to before 564ac339c0f8bada4e77a57a92bab9d3df635e07Affected
  • fb21b1568adaa76af7a8c853f37c60fba8b28661 to before 8eb077025279304268bd58657f0af3d388822b21Affected
  • fb21b1568adaa76af7a8c853f37c60fba8b28661 to before ba5c0f28a26e7d9be1e0997f8920dd638e2782fdAffected
  • 1e0216b6a58c79b5ee91c78706d5f560e4d1f56fAffected
  • 4b23c4b991eb90cc7bca42e9f81142feedd4bb56Affected
  • 6.12.24 to before 6.12.105Affected
  • 6.13.12 to before 6.14Affected
  • 6.14.3 to before 6.15Affected
LinuxLinux
  • 6.15Affected
  • before 6.15Not affected
  • 6.12.105 through 6.12.*Not affected
  • 6.18.44 through 6.18.*Not affected
  • 7.1.8 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.