ACK: [SRU][F][PATCH 0/1] CVE-2023-52458
Philip Cox
philip.cox at canonical.com
Tue Jan 7 15:29:16 UTC 2025
On 2025-01-01 9:30 p.m., Guoqing Jiang wrote:
> [Impact]
>
> block: add check that partition length needs to be aligned with block size
>
> Before calling add partition or resize partition, there is no check
> on whether the length is aligned with the logical block size.
> If the logical block size of the disk is larger than 512 bytes,
> then the partition size maybe not the multiple of the logical block size,
> and when the last sector is read, bio_truncate() will adjust the bio size,
> resulting in an IO error if the size of the read command is smaller than
> the logical block size.If integrity data is supported, this will also
> result in a null pointer dereference when calling bio_integrity_free.
>
> [Fix]
>
> Oracular: Not affected
> Noble: Not affected
> Jammy: Fixed 5.15.0-102.112
> Focal: Backport
> Bionic: Send to ESM ML
> Xenial: Not affected
> Trusty: Not affected
>
> [Test Case]
>
> Compile tested only.
>
> [Where problems could occur]
>
> The fix affects add partition or resize partition against block device.
>
> Min Li (1):
> block: add check that partition length needs to be aligned with block
> size
>
> block/ioctl.c | 12 ++++++++----
> 1 file changed, 8 insertions(+), 4 deletions(-)
Acked-by: Philip Cox <philip.cox at canonical.com>
More information about the kernel-team
mailing list