Affected versions
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
- Affected versions
- Unknown
- Fixed version
- Not reported
Exploitation
Description
In the Linux kernel, the following vulnerability has been resolved: iommufd: Prevent ALIGN() overflow When allocating IOVA the candidate range gets aligned to the target alignment. If the range is close to ULONG_MAX then the ALIGN() can wrap resulting in a corrupted iova. Open code the ALIGN() using get_add_overflow() to prevent this. This simplifies the checks as we don't need to check for length earlier either. Consolidate the two copies of this code under a single helper. This bug would allow userspace to create a mapping that overlaps with some other mapping or a reserved range.
A flaw was found in the Linux kernel's I/O Memory Management Unit user API (iommufd). A local user with access to the iommufd interface can cause memory corruption or a denial of service (DoS) by allocating an I/O Virtual Address (IOVA) range near the upper address limit. Because the address alignment calculation does not properly check for integer overflow, the address range wraps around and allows the creation of overlapping memory mappings with other allocations or reserved ranges.

