CVE Vulnerabilities

CVE-2023-52458

NULL Pointer Dereference

Published: Feb 23, 2024 | Modified: Apr 19, 2024
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu

In the Linux kernel, the following vulnerability has been resolved:

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.

Weakness

A NULL pointer dereference occurs when the application dereferences a pointer that it expects to be valid, but is NULL, typically causing a crash or exit.

Affected Software

Name Vendor Start Version End Version
Linux_kernel Linux * 5.10.215 (excluding)
Linux_kernel Linux 5.11.0 (including) 5.15.148 (excluding)
Linux_kernel Linux 5.16.0 (including) 6.1.75 (excluding)
Linux_kernel Linux 6.2.0 (including) 6.6.14 (excluding)
Linux_kernel Linux 6.7.0 (including) 6.7.2 (excluding)

Potential Mitigations

References