{"id":"CVE-2022-48789","state":"PUBLISHED","title":"nvme-tcp: fix possible use-after-free in transport error_recovery work","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: fix possible use-after-free in transport error_recovery work\n\nWhile nvme_tcp_submit_async_event_work is checking the ctrl and queue\nstate before preparing the AER command and scheduling io_work, in order\nto fully prevent a race where this check is not reliable the error\nrecovery work must flush async_event_work before continuing to destroy\nthe admin queue after setting the ctrl state to RESETTING such that\nthere is no race .submit_async_event and the error recovery handler\nitself changing the ctrl state.","publishedAt":"2024-07-16T11:43:45.894Z","updatedAt":"2026-08-05T08:52:19.606Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"61a26ffd5ad3ece456d74c4c79f7b5e3f440a141","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"e192184cf8bce8dd55d619f5611a2eaba996fa05","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"5e42fca37ccc76f39f73732661bd47254cad5982","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.181","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.102","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.25","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.11","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/tcp.c"]}],"references":["https://git.kernel.org/stable/c/61a26ffd5ad3ece456d74c4c79f7b5e3f440a141","https://git.kernel.org/stable/c/e192184cf8bce8dd55d619f5611a2eaba996fa05","https://git.kernel.org/stable/c/5e42fca37ccc76f39f73732661bd47254cad5982","https://git.kernel.org/stable/c/bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4","https://git.kernel.org/stable/c/ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48789.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48789","state":"PUBLISHED","datePublished":"2024-07-16T11:43:45.894Z","dateUpdated":"2026-08-05T08:52:19.606Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-16T11:38:08.892Z"},"containers":{"cna":{"title":"nvme-tcp: fix possible use-after-free in transport error_recovery work","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-tcp: fix possible use-after-free in transport error_recovery work\n\nWhile nvme_tcp_submit_async_event_work is checking the ctrl and queue\nstate before preparing the AER command and scheduling io_work, in order\nto fully prevent a race where this check is not reliable the error\nrecovery work must flush async_event_work before continuing to destroy\nthe admin queue after setting the ctrl state to RESETTING such that\nthere is no race .submit_async_event and the error recovery handler\nitself changing the ctrl state."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"61a26ffd5ad3ece456d74c4c79f7b5e3f440a141","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"e192184cf8bce8dd55d619f5611a2eaba996fa05","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"5e42fca37ccc76f39f73732661bd47254cad5982","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4","versionType":"git"},{"version":"3f2304f8c6d6ed97849057bd16fee99e434ca796","status":"affected","lessThan":"ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/tcp.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.0","versionType":"semver"},{"version":"5.4.181","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.102","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.25","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.11","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/tcp.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/61a26ffd5ad3ece456d74c4c79f7b5e3f440a141"},{"url":"https://git.kernel.org/stable/c/e192184cf8bce8dd55d619f5611a2eaba996fa05"},{"url":"https://git.kernel.org/stable/c/5e42fca37ccc76f39f73732661bd47254cad5982"},{"url":"https://git.kernel.org/stable/c/bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4"},{"url":"https://git.kernel.org/stable/c/ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL"},"scenarios":[{"lang":"en","value":"AV:N - The nvme-tcp host processes TCP PDUs and AENs from a remote NVMe-oF target; a malicious or compromised target triggers error recovery and async-event work via network protocol messages on an established connection.\nAC:L - The remote peer controls both sides of the race by sending an AEN (scheduling async_event_work) and inducing a transport error or disconnect (scheduling error_recovery_work), so success does not depend on conditions outside the attacker’s influence.\nPR:N - Exploitation requires no privileges on the victim host; once an NVMe-TCP session exists, an unauthenticated remote peer can trigger the race solely through fabric protocol behavior.\nUI:N - No additional user action is required at exploit time beyond a pre-existing NVMe-TCP controller connection typical of datacenter storage attachments with autoconnect/reconnect.\nS:U - The use-after-free corrupts kernel memory in the local host’s nvme-tcp driver and does not cross a distinct security authority such as a VM or IOMMU boundary.\nC:H - Use-after-free of the admin queue async-event resources and related queue/socket structures enables heap reuse and arbitrary kernel read primitives.\nI:H - The same UAF is exploitable for heap spraying and arbitrary write/control-flow hijacking in kernel context via the freed queue socket and async request objects.\nA:H - The UAF can cause kernel oops/panic or hangs during admin-queue teardown even without a full exploit, and can be repeated across automatic reconnects."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:52:19.606Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.4.181"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.10.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.15.25"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.16.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.0","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/61a26ffd5ad3ece456d74c4c79f7b5e3f440a141","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e192184cf8bce8dd55d619f5611a2eaba996fa05","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5e42fca37ccc76f39f73732661bd47254cad5982","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/bb0d8fb35c4ff00a503c2c4dca4cce8d102a21c4","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ff9fc7ebf5c06de1ef72a69f9b1ab40af8b07f9e","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:25:01.577Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48789","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:59:42.520787Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:15.954Z"}}]}}}