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

Guoqing Jiang guoqing.jiang at canonical.com
Thu Jan 2 02:30:04 UTC 2025


[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




More information about the kernel-team mailing list