Bug 2193097 (CVE-2023-2513) - CVE-2023-2513 kernel: ext4: use-after-free in ext4_xattr_set_entry()
Summary: CVE-2023-2513 kernel: ext4: use-after-free in ext4_xattr_set_entry()
Keywords:
Status: NEW
Alias: CVE-2023-2513
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2125474 2145193 2193101 2193102 2193103 2193104 2233512
Blocks: 2192562
TreeView+ depends on / blocked
 
Reported: 2023-05-04 10:18 UTC by Mauro Matteo Cascella
Modified: 2024-10-12 08:28 UTC (History)
45 users (show)

Fixed In Version: kernel 6.0-rc1
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in the Linux kernel's ext4 filesystem in the way it handled the extra inode size for extended attributes. This flaw allows a privileged local user to cause a system crash or other undefined behaviors.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2023:7268 0 None None None 2023-11-15 18:25:27 UTC
Red Hat Product Errata RHBA-2023:7328 0 None None None 2023-11-16 11:39:00 UTC
Red Hat Product Errata RHBA-2023:7338 0 None None None 2023-11-16 18:04:20 UTC
Red Hat Product Errata RHBA-2023:7343 0 None None None 2023-11-20 01:58:49 UTC
Red Hat Product Errata RHBA-2023:7346 0 None None None 2023-11-20 09:25:51 UTC
Red Hat Product Errata RHSA-2023:6901 0 None None None 2023-11-14 15:15:35 UTC
Red Hat Product Errata RHSA-2023:7077 0 None None None 2023-11-14 15:20:55 UTC
Red Hat Product Errata RHSA-2024:0412 0 None None None 2024-01-24 16:43:47 UTC

Description Mauro Matteo Cascella 2023-05-04 10:18:13 UTC
A use-after-free vulnerability was found in the Linux kernel's ext4 filesystem in the way it handled extra inode size for extended attributes.

Quoting the upstream commit below: "In the calculation formula, all values except s_inode_size and i_extra_size are fixed values. When i_extra_size is the maximum value s_inode_size - EXT4_GOOD_OLD_INODE_SIZE, min_offs is -4 and free is -8. The value overflows. As a result, the preceding issue is triggered when memcpy is executed."

Patch series:
https://lore.kernel.org/all/20220616021358.2504451-1-libaokun1@huawei.com/

Upstream fix:
https://github.com/torvalds/linux/commit/67d7d8ad99be

Comment 8 Mauro Matteo Cascella 2023-06-15 18:07:35 UTC
This issue was fixed upstream in version 6.0-rc1. The kernel packages as shipped in the following Red Hat products were previously updated to a version that contains the fix via the following errata:

kernel in Red Hat Enterprise Linux 9
https://access.redhat.com/errata/RHSA-2023:2458

kernel-rt in Red Hat Enterprise Linux 9
https://access.redhat.com/errata/RHSA-2023:2148

Comment 12 errata-xmlrpc 2023-11-14 15:15:31 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:6901 https://access.redhat.com/errata/RHSA-2023:6901

Comment 13 errata-xmlrpc 2023-11-14 15:20:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2023:7077 https://access.redhat.com/errata/RHSA-2023:7077

Comment 14 errata-xmlrpc 2024-01-24 16:43:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Extended Update Support

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


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