CVE-2022-48789: nvme-tcp: fix possible use-after-free in transport error_recovery work

Published Jul 16, 2024
·
Updated

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

nvme-tcp: fix possible use-after-free in transport errorrecovery work

While nvmetcpsubmitasynceventwork is checking the ctrl and queue state before preparing the AER command and scheduling iowork, in order to fully prevent a race where this check is not reliable the error recovery work must flush asynceventwork before continuing to destroy the admin queue after setting the ctrl state to RESETTING such that there is no race .submitasyncevent and the error recovery handler itself changing the ctrl state.

Affected Software

4 affected components
Linux Linux kernel<5.4.181
Linux Linux kernel>=5.5<5.10.102
Linux Linux kernel>=5.11<5.15.25
Linux Linux kernel>=5.16<5.16.11

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Ensure nvme-tcp transport error_recovery flushes async_event_work before continuing to destroy state, so there is no race between nvme_tcp_submit_async_event_work checking ctrl/queue and changing ctrl state (especially after setting ctrl state to RESETTING before preparing the AER command and scheduling io_work).

  2. Compensating control

    In nvme-tcp error recovery, flush async_event_work before preparing the AER command and scheduling io_work to fully prevent a race where the check is not reliable.

Event History

Jul 16, 2024
CVE Published
via MITRE·11:43 AM
Data Sourced
via MITRE·11:43 AM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-48789?

The severity of CVE-2022-48789 is classified as a moderate vulnerability due to a potential use-after-free condition in the Linux kernel.

2

How do I fix CVE-2022-48789?

To fix CVE-2022-48789, upgrade your Linux kernel to a version that is later than 5.16.11 or one of the other patched versions mentioned in the security advisories.

3

Which software versions are affected by CVE-2022-48789?

CVE-2022-48789 affects various Linux kernel versions, specifically those prior to 5.4.181, between 5.5 and 5.10.102, between 5.11 and 5.15.25, and between 5.16 and 5.16.11.

4

Can CVE-2022-48789 be exploited remotely?

Yes, due to its nature, CVE-2022-48789 could potentially be exploited remotely under certain conditions.

5

What component of the Linux kernel does CVE-2022-48789 impact?

CVE-2022-48789 impacts the NVMe over TCP transport feature within the Linux kernel.

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