block: initialize integrity buffer to zero before writing it to media
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7ba1ba12eeef0aa7113beb16410ef8b7c748e18b · < 23a19655fb56f241e592041156dfb1c6d04da644| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
block: initialize integrity buffer to zero before writing it to media
Metadata added by bio_integrity_prep is using plain kmalloc, which leads to random kernel memory being written media. For PI metadata this is limited to the app tag that isn't used by kernel generated metadata, but for non-PI metadata the entire buffer leaks kernel memory.
Fix this by adding the __GFP_ZERO flag to allocations for writes.
From the CVE record · Linux
The Linux kernel can write uninitialized kernel memory to media when preparing block integrity metadata. The exposure is limited to the app tag for PI metadata but can affect the entire buffer for non-PI metadata; the input does not specify attacker access requirements or user interaction.
Engineers running the Linux kernel should check their version against the vendor advisory; affected versions were not provided.