Bug 2065662 (CVE-2021-45868) - CVE-2021-45868 kernel: fs/quota/quota_tree.c does not validate the block number in the quota tree
Summary: CVE-2021-45868 kernel: fs/quota/quota_tree.c does not validate the block numb...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2021-45868
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2103252
Blocks: 2065663
TreeView+ depends on / blocked
 
Reported: 2022-03-18 12:38 UTC by Pedro Sampaio
Modified: 2022-09-23 13:01 UTC (History)
45 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A use-after-free vulnerability was found in the Linux kernel. The quota mechanism doesn't properly validate the quota block number, triggering a use-after-free bug in the RWSem code, leading to a denial of service.
Clone Of:
Environment:
Last Closed: 2022-07-19 13:56:20 UTC
Embargoed:


Attachments (Terms of Use)

Description Pedro Sampaio 2022-03-18 12:38:11 UTC
In the Linux kernel before 5.15.3, fs/quota/quota_tree.c does not validate the block number in the quota tree (on disk). This can, for example, lead to a kernel/locking/rwsem.c use-after-free if there is a corrupted quota file.

References:

https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.3
https://www.openwall.com/lists/oss-security/2022/03/17/2
https://www.openwall.com/lists/oss-security/2022/03/17/1
https://bugzilla.kernel.org/show_bug.cgi?id=214655
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9bf3d20331295b1ecb81f4ed9ef358c51699a050

Comment 2 Marco Benatto 2022-07-01 19:58:44 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2103252]

Comment 3 Justin M. Forbes 2022-07-01 21:24:16 UTC
This was fixed for Fedora with the 5.14.19 stable kernel updates.


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