Linux kernel excessive allocation in Xen grant allocation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dd3140588d9551235ebc2a0dacdca098e7677573 · < 231542f4e43cf9837cb520664545e85fbe666b7b| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
xen/gntalloc: validate grant count before allocation
gntalloc_ioctl_alloc() allocates the grant-id array before checking whether the requested count fits within the global grant limit. Counts above that limit cannot succeed, so reject them before the user-controlled allocation reaches kcalloc().
Use a subtraction-based check while holding gref_mutex so adding the requested count cannot wrap. Also cast the count before advancing the per-file index so the page-size multiplication is performed in 64-bit arithmetic.
From the CVE record · Linux
The Linux kernel’s Xen gntalloc ioctl allocated a grant-ID array before checking whether the requested count exceeded the global grant limit. A local caller able to use the ioctl could request an excessive, user-controlled allocation even though the grant request could not succeed.
Engineers running Linux kernels with Xen gntalloc should check their kernel against the vendor advisory; affected versions are not specified.