Bug 2307858 (CVE-2024-43885) - CVE-2024-43885 kernel: btrfs: fix double inode unlock for direct IO sync writes
Summary: CVE-2024-43885 kernel: btrfs: fix double inode unlock for direct IO sync writes
Keywords:
Status: NEW
Alias: CVE-2024-43885
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2308103
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-08-26 11:20 UTC by OSIDB Bzimport
Modified: 2024-10-02 14:56 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-08-26 11:20:31 UTC
In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix double inode unlock for direct IO sync writes

If we do a direct IO sync write, at btrfs_sync_file(), and we need to skip
inode logging or we get an error starting a transaction or an error when
flushing delalloc, we end up unlocking the inode when we shouldn't under
the 'out_release_extents' label, and then unlock it again at
btrfs_direct_write().

Fix that by checking if we have to skip inode unlocking under that label.

Comment 1 Mauro Matteo Cascella 2024-08-27 10:32:17 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024082652-CVE-2024-43885-3500@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-08-27 10:34:17 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024082652-CVE-2024-43885-3500@gregkh/T


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