Bug 2300401 (CVE-2024-41034) - CVE-2024-41034 kernel: nilfs2: fix kernel bug on rename operation of broken directory
Summary: CVE-2024-41034 kernel: nilfs2: fix kernel bug on rename operation of broken d...
Keywords:
Status: NEW
Alias: CVE-2024-41034
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: 2301535
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:32 UTC by OSIDB Bzimport
Modified: 2024-09-19 14:28 UTC (History)
4 users (show)

Fixed In Version: kernel 4.19.318, kernel 5.4.280, kernel 5.10.222, kernel 5.15.163, kernel 6.1.100, kernel 6.6.41, kernel 6.9.10, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-29 15:32:05 UTC
In the Linux kernel, the following vulnerability has been resolved:

nilfs2: fix kernel bug on rename operation of broken directory

Syzbot reported that in rename directory operation on broken directory on
nilfs2, __block_write_begin_int() called to prepare block write may fail
BUG_ON check for access exceeding the folio/page size.

This is because nilfs_dotdot(), which gets parent directory reference
entry ("..") of the directory to be moved or renamed, does not check
consistency enough, and may return location exceeding folio/page size for
broken directories.

Fix this issue by checking required directory entries ("." and "..") in
the first chunk of the directory in nilfs_dotdot().

Comment 1 Mauro Matteo Cascella 2024-07-30 08:59:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072922-CVE-2024-41034-7593@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-30 08:59:36 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2301535]


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