APPLIED: [SRU][F][PATCH 0/1] CVE-2023-52458

Mehmet Basaran mehmet.basaran at canonical.com
Mon Jan 13 06:18:12 UTC 2025


Guoqing Jiang <guoqing.jiang at canonical.com> writes:

> [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(-)
>
> -- 
> 2.34.1
>
>
> -- 
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Applied to focal:linux master-next branch. Thanks!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 873 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20250113/8c20b1c3/attachment.sig>


More information about the kernel-team mailing list