iommufd: Make sure to zero vfio_iommu_type1_info before copying to user
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: Make sure to zero vfio_iommu_type1_info before copying to user
Missed a zero initialization here. Most of the struct is filled with a copy_from_user(), however minsz for that copy is smaller than the actual struct by 8 bytes, thus we don't fill the padding.
From the CVE record · Linux
The Linux kernel’s iommufd code did not zero-initialize vfio_iommu_type1_info before copying it to a user. Because the user-supplied data does not fill the final eight bytes, a caller may receive uninitialized padding; the input does not specify authentication requirements.
Engineers running the Linux kernel should check whether their version is affected; affected versions are not specified.