CVE-2025-22068: ublk: make sure ubq->canceling is set when queue is frozen

Published Apr 16, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ublk: make sure ubq->canceling is set when queue is frozen

Now ublk driver depends on ubq->canceling for deciding if the request can be dispatched via uringcmd & iouringcmdcompleteintask().

Once ubq->canceling is set, the uringcmd can be done via ublkcancelcmd() and iouringcmddone().

So set ubq->canceling when queue is frozen, this way makes sure that the flag can be observed from ublkqueuerq() reliably, and avoids use-after-free on uringcmd.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=6.7<6.12.23
Linux Linux kernel>=6.13<6.13.11
Linux Linux kernel>=6.14<6.14.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set ubq->canceling when the queue is frozen so uring_cmd can be dispatched via ublk_cancel_cmd() and the flag can be observed from ublk_queue_rq() reliably, avoiding use-after-free on uring_cmd.

    Linux kernel ublk driver ubq->canceling = true

Event History

Apr 16, 2025
CVE Published
via MITRE·02:12 PM
Data Sourced
via MITRE·02:12 PM
DescriptionSeverity
Data Sourced
via Red Hat·03:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22068?

CVE-2025-22068 has been classified with a severity rating that indicates it poses important security risks related to the Linux kernel.

2

How do I fix CVE-2025-22068?

To mitigate CVE-2025-22068, ensure that you update your Linux kernel to the patched version where this vulnerability has been addressed.

3

What are the primary impacts of CVE-2025-22068?

CVE-2025-22068 affects the ublk driver functionality, potentially allowing incorrect request dispatching when unpacking queued requests.

4

Which versions of the Linux kernel are affected by CVE-2025-22068?

CVE-2025-22068 affects specific versions of the Linux kernel that do not have the latest security patches applied.

5

Is CVE-2025-22068 publicly known?

Yes, CVE-2025-22068 is a publicly disclosed vulnerability that is part of the official CVE database.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203