KVM: arm64: vgic-its: Reject restored DTE with out-of-range num_eventid_bits
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 57a9a117154c93539e33161dd318e6aeb8c04efa · < 9ce754ed8e7ab4e3999767ce1505f85c449ccb07| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
KVM: arm64: vgic-its: Reject restored DTE with out-of-range num_eventid_bits
Userspace can restore an ITS Device Table Entry whose Size field encodes more EventID bits than the virtual ITS supports. The live MAPD path rejects that state, but vgic_its_restore_dte() accepts it and stores the out-of-range value in dev->num_eventid_bits.
Reject restored DTEs with num_eventid_bits > VITS_TYPER_IDBITS before allocating the device. This mirrors the MAPD check and prevents the restored state from reaching vgic_its_restore_itt(), where the unchecked value can be converted into an oversized scan_its_table() range.
From the CVE record · Linux
The KVM arm64 virtual ITS accepts a restored Device Table Entry with more EventID bits than it supports. Local userspace that restores such an entry can cause the unchecked value to become an oversized table-scan range; no user interaction is described.
Engineers running the Linux kernel with KVM arm64 virtual ITS should check their installations; affected versions were not provided.