gpu/buddy: bail out of try_harder when alignment cannot be honoured
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:
gpu/buddy: bail out of try_harder when alignment cannot be honoured
The try_harder contiguous fallback could return a range whose start offset did not match the caller's min_block_size. When a candidate's start is misaligned, realign it: free the misaligned run and reallocate exactly @size at the next lower min_block_size boundary. This keeps the returned size unchanged with no surplus to trim, and rejects the request only when no aligned candidate fits.
v2: align misaligned candidates down to min_block_size instead of bailing out, for both the RHS and LHS paths (Matthew).
From the CVE record · Linux
The Linux kernel GPU buddy allocator's contiguous fallback could return a range whose start does not meet the caller's minimum block alignment. The input does not describe an attacker outcome or specify whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running Linux kernels should check their versions against the vendor advisory; affected versions are not specified in the input.