iommufd/selftest: Check for overflow in IOMMU_TEST_OP_ADD_RESERVED
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
iommufd/selftest: Check for overflow in IOMMU_TEST_OP_ADD_RESERVED
syzkaller found it could overflow math in the test infrastructure and cause a WARN_ON by corrupting the reserved interval tree. This only effects test kernels with CONFIG_IOMMUFD_TEST.
Validate the user input length in the test ioctl.
From the CVE record · Linux
The IOMMU_TEST_OP_ADD_RESERVED test ioctl can overflow arithmetic and corrupt the reserved interval tree, causing a kernel warning. This affects only test kernels built with CONFIG_IOMMUFD_TEST when a local user invokes the ioctl with a crafted length.
Engineers running Linux test kernels with CONFIG_IOMMUFD_TEST enabled should check their kernels; affected versions were not specified.