Bug 2265794 (CVE-2023-52458) - CVE-2023-52458 kernel: block: null pointer dereference in ioctl.c when length and logical block size are misaligned
Summary: CVE-2023-52458 kernel: block: null pointer dereference in ioctl.c when length...
Keywords:
Status: NEW
Alias: CVE-2023-52458
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2265806
Blocks: 2265790
TreeView+ depends on / blocked
 
Reported: 2024-02-24 11:20 UTC by Patrick Del Bello
Modified: 2024-04-19 14:28 UTC (History)
49 users (show)

Fixed In Version: kernel 6.8-rc1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Linux kernel's block subsystem, where a NULL pointer dereference occurs if partitions are created or resized with a size that is not a multiple of the logical block size. This flaw allows a privileged attacker to cause a denial of service.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Patrick Del Bello 2024-02-24 11:20:03 UTC
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.

Comment 1 Patrick Del Bello 2024-02-24 11:25:03 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2265806]

Comment 3 Justin M. Forbes 2024-02-27 00:17:23 UTC
	Fixed in 5.15.148 with commit 5010c2712096
	Fixed in 6.1.75 with commit ef31cc877947
	Fixed in 6.6.14 with commit cb16cc1abda1
	Fixed in 6.7.2 with commit bcdc288e7bc0
	Fixed in 6.8-rc1 with commit 6f64f866aa1a

Comment 4 Justin M. Forbes 2024-02-27 00:17:55 UTC
This was fixed for Fedora with the 6.6.14 stable kernel updates.


Note You need to log in before you can comment on or make changes to this bug.