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
low
low
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-08-15 07:43 UTC (History)
50 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)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:5114 0 None None None 2024-08-08 07:41:15 UTC
Red Hat Product Errata RHBA-2024:5450 0 None None None 2024-08-15 07:43:42 UTC
Red Hat Product Errata RHSA-2024:4928 0 None None None 2024-07-31 00:40:00 UTC
Red Hat Product Errata RHSA-2024:5066 0 None None None 2024-08-07 09:37:00 UTC
Red Hat Product Errata RHSA-2024:5067 0 None None None 2024-08-07 00:12:07 UTC

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.

Comment 6 Alex 2024-06-09 15:29:14 UTC
The result of automatic check (that is developed by Alexander Larkin) for this CVE-2023-52458 is: CHECK	Maybe valid. Check manually. with impact MODERATE (that is approximation based on flags NULLPTR DISK SIMPLEFIX LOG IMPROVEONLY  ; these flags parsed automatically based on patche data). Such automatic check happens only for Low/Moderates (and only when not from reporter, but parsing already existing CVE). Highs always checked manually (I check it myself and then we check it again in Remediation team). In rare cases some of the Moderates could be increased to High later.

Comment 15 errata-xmlrpc 2024-07-31 00:39:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:4928 https://access.redhat.com/errata/RHSA-2024:4928

Comment 16 errata-xmlrpc 2024-08-07 00:12:04 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:5067 https://access.redhat.com/errata/RHSA-2024:5067

Comment 17 errata-xmlrpc 2024-08-07 09:36:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

Via RHSA-2024:5066 https://access.redhat.com/errata/RHSA-2024:5066


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