CVE-2024-49854: block, bfq: fix uaf for accessing waker_bfqq after splitting
In the Linux kernel, the following vulnerability has been resolved:
block, bfq: fix uaf for accessing waker_bfqq after splitting
After commit 42c306ed7233 ("block, bfq: don't break merge chain in
bfq_split_bfqq()"), if the current procress is the last holder of bfqq,
the bfqq can be freed after bfq_split_bfqq(). Hence recored the bfqq and
then access bfqq->waker_bfqq may trigger UAF. What's more, the waker_bfqq
may in the merge chain of bfqq, hence just recored waker_bfqq is still
not safe.
Fix the problem by adding a helper bfq_waker_bfqq() to check if
bfqq->waker_bfqq is in the merge chain, and current procress is the only
holder.
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s BFQ disk scheduler can make the kernel access memory after it has been freed. A low-privileged local user could potentially cause a crash, expose data, or alter system behavior. The supplied evidence does not establish a practical exploit or active attacks.
Executive priority
Treat this as an accelerated kernel-patching priority, especially on shared or multi-user Linux systems. It is not supported as an unauthenticated internet emergency: exploitation requires local privileges, and no active exploitation is documented in the supplied sources. Require asset-level confirmation because distribution backports complicate version assessment.
Technical view
During BFQ queue splitting, bfq_split_bfqq() can free the queue when the current process is its last holder. A later waker_bfqq access can then cause use-after-free. Retaining the waker pointer is also unsafe when it belongs to the merge chain. The referenced fix adds validation through bfq_waker_bfqq().
Likely exposure
Exposure is limited to Linux kernels containing the affected BFQ code and reaching the vulnerable scheduling path. Internet reachability alone does not enable exploitation because the CVSS vector requires local, low-privileged access. Exact exposure requires mapping the running distribution kernel or backport to the listed affected identifiers and referenced fixes.
Exploitation context
No cited source substantiates active exploitation, and the supplied KEV flag is false. The CVSS vector indicates local access, low privileges, low complexity, and no user interaction. The sources do not establish exploit reliability, observed indicators, or additional environmental prerequisites.
Researcher notes
The critical lifetime condition occurs when the current process is the final bfqq holder during splitting. waker_bfqq may itself be within the queue’s merge chain, so preserving only that pointer does not eliminate the unsafe reference. The supplied material provides no proof-of-concept, exploitation telemetry, or definitive distribution-by-distribution version matrix.
Mitigation direction
Apply a distribution-supported kernel update incorporating the referenced stable fix for CVE-2024-49854.
Reboot affected hosts into the updated kernel and verify that the running version changed.
For unsupported kernels, check vendor guidance and backport status before treating the issue as resolved.
Prioritize multi-user systems where untrusted local users can execute code.
Validation and detection
Inventory running kernel versions and map vendor builds to the bundle’s listed affected identifiers.
Determine whether the BFQ I/O scheduler is present and used on relevant block devices.
Confirm the running kernel includes an applicable referenced fix or vendor-equivalent backport.
Review distribution advisories because package version strings may not clearly reveal backported fixes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-49854 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.