| Reported on: | 20260804 |
|---|---|
| Published on: | 20260812 |
| Fixed on: | 20260812 |
| Reported by: | Ada Logics |
|---|---|
| Anthropic Research | |
| Patched by: | Peter Krempa |
The RPC handler 'remoteDispatchNodeGetFreePages' multiplies the 'npages' argument with the 'cellcount' argument passed to 'virNodeGetFreePages', both of which are declared as 'unsigned int' to both do an RPC limit check against the 'REMOTE_NODE_MAX_CELLS' constant and then to allocate the memory to hold the result from the actual hypervisor driver. Since both the values are 'unsigned int' the product is also unsigned int so big enough numbers can overflow, both passing the check and also allocating not enough memory for the result. The hypervisor driver assumes that the passed buffer is large enough and overwrites memory. When this happens the the hypervisor daemon crashes. This can be triggered e.g. by passing 1023 and 4198405 as values which multiply to 1019 after wrapping to 32 bit unsigned value.
Unprivileged users can cause the libvirt daemon to crash by writing beyond the end of the buffer
None