Bug 2300422 (CVE-2024-41049) - CVE-2024-41049 kernel: filelock: fix potential use-after-free in posix_lock_inode
Summary: CVE-2024-41049 kernel: filelock: fix potential use-after-free in posix_lock_i...
Keywords:
Status: NEW
Alias: CVE-2024-41049
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: 2301579
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-29 15:40 UTC by OSIDB Bzimport
Modified: 2025-03-31 13:09 UTC (History)
4 users (show)

Fixed In Version: 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)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:10942 0 None None None 2024-12-11 01:19:59 UTC
Red Hat Product Errata RHSA-2024:8613 0 None None None 2024-10-30 00:32:18 UTC
Red Hat Product Errata RHSA-2024:8614 0 None None None 2024-10-30 00:13:06 UTC
Red Hat Product Errata RHSA-2024:9315 0 None None None 2024-11-12 09:37:08 UTC

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

filelock: fix potential use-after-free in posix_lock_inode

Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode().
The request pointer had been changed earlier to point to a lock entry
that was added to the inode's list. However, before the tracepoint could
fire, another task raced in and freed that lock.

Fix this by moving the tracepoint inside the spinlock, which should
ensure that this doesn't happen.

Comment 1 Mauro Matteo Cascella 2024-07-30 10:19:15 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024072927-CVE-2024-41049-bf28@gregkh/T

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

Affects: fedora-all [bug 2301579]

Comment 6 errata-xmlrpc 2024-10-30 00:13:05 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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

Comment 7 errata-xmlrpc 2024-10-30 00:32:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Extended Update Support

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

Comment 8 errata-xmlrpc 2024-11-12 09:37:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 9 errata-xmlrpc 2024-12-11 01:19:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

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


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