Bug 2259414 (CVE-2024-0775) - CVE-2024-0775 kernel: use-after-free while changing the mount option in __ext4_remount leading
Summary: CVE-2024-0775 kernel: use-after-free while changing the mount option in __ext...
Keywords:
Status: NEW
Alias: CVE-2024-0775
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:
Blocks: 2211740
TreeView+ depends on / blocked
 
Reported: 2024-01-21 12:39 UTC by Rohit Keshri
Modified: 2024-02-28 06:19 UTC (History)
45 users (show)

Fixed In Version: Kernel 6.4-rc2
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free flaw was found in the __ext4_remount in fs/ext4/super.c in ext4 in the Linux kernel. This flaw allows a local user to cause an information leak problem while freeing the old quota file names before a potential failure, leading to a use-after-free.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Rohit Keshri 2024-01-21 12:39:34 UTC
If there are failures while changing the mount options in __ext4_remount(), we need to restore the old mount options, there is a chance that we will free the old quota file names before a potential failure leading to a use-after-free.  

Also, if there is a failed read/write to read-only transition, if the quota has already been suspended, we need to renable quota handling.

Refer:
https://scm.linefinity.com/common/linux-stable/commit/4c0b4818b1f636bc96359f7817a2d8bab6370162


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