null_blk: fix validation of block size
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ cedcafad8277b3a07e90bf2f68fff5c6b28a183e · < c462ecd659b5fce731f1d592285832fd6ad54053| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
null_blk: fix validation of block size
Block size should be between 512 and PAGE_SIZE and be a power of 2. The current check does not validate this, so update the check.
Without this patch, null_blk would Oops due to a null pointer deref when loaded with bs=1536 [1].
[axboe: remove unnecessary braces and != 0 check]
From the CVE record · Linux
The Linux kernel's null_blk component does not properly validate block size. Loading it with bs=1536 can cause a null pointer dereference and kernel Oops. The input does not specify an attack route or authentication requirements.
Engineers running Linux kernels with the null_blk component should check their deployments; affected versions are not specified.