{"id":"CVE-2022-48788","state":"PUBLISHED","title":"nvme-rdma: fix possible use-after-free in transport error_recovery work","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnvme-rdma: fix possible use-after-free in transport error_recovery work\n\nWhile nvme_rdma_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.213Z","updatedAt":"2026-08-05T08:52:18.532Z","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":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"5593f72d1922403c11749532e3a0aa4cf61414e9","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"d411b2a5da68b8a130c23097014434ac140a2ace","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"324f5bdc52ecb6a6dadb31a62823ef8c709d1439","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"646952b2210f19e584d2bf9eb5d092abdca2fcc1","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"ea86027ac467a055849c4945906f799e7f65ab99","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"b6bb1722f34bbdbabed27acdceaf585d300c5fd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"4.19.231","status":"unaffected","lessThanOrEqual":"4.19.*","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/rdma.c"]}],"references":["https://git.kernel.org/stable/c/5593f72d1922403c11749532e3a0aa4cf61414e9","https://git.kernel.org/stable/c/d411b2a5da68b8a130c23097014434ac140a2ace","https://git.kernel.org/stable/c/324f5bdc52ecb6a6dadb31a62823ef8c709d1439","https://git.kernel.org/stable/c/646952b2210f19e584d2bf9eb5d092abdca2fcc1","https://git.kernel.org/stable/c/ea86027ac467a055849c4945906f799e7f65ab99","https://git.kernel.org/stable/c/b6bb1722f34bbdbabed27acdceaf585d300c5fd2"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/48xxx/CVE-2022-48788.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-48788","state":"PUBLISHED","datePublished":"2024-07-16T11:43:45.213Z","dateUpdated":"2026-08-05T08:52:18.532Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-16T11:38:08.892Z"},"containers":{"cna":{"title":"nvme-rdma: 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-rdma: fix possible use-after-free in transport error_recovery work\n\nWhile nvme_rdma_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":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"5593f72d1922403c11749532e3a0aa4cf61414e9","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"d411b2a5da68b8a130c23097014434ac140a2ace","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"324f5bdc52ecb6a6dadb31a62823ef8c709d1439","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"646952b2210f19e584d2bf9eb5d092abdca2fcc1","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"ea86027ac467a055849c4945906f799e7f65ab99","versionType":"git"},{"version":"7110230719602852481c2793d054f866b2bf4a2b","status":"affected","lessThan":"b6bb1722f34bbdbabed27acdceaf585d300c5fd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/nvme/host/rdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.8","versionType":"semver"},{"version":"4.19.231","status":"unaffected","lessThanOrEqual":"4.19.*","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/rdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5593f72d1922403c11749532e3a0aa4cf61414e9"},{"url":"https://git.kernel.org/stable/c/d411b2a5da68b8a130c23097014434ac140a2ace"},{"url":"https://git.kernel.org/stable/c/324f5bdc52ecb6a6dadb31a62823ef8c709d1439"},{"url":"https://git.kernel.org/stable/c/646952b2210f19e584d2bf9eb5d092abdca2fcc1"},{"url":"https://git.kernel.org/stable/c/ea86027ac467a055849c4945906f799e7f65ab99"},{"url":"https://git.kernel.org/stable/c/b6bb1722f34bbdbabed27acdceaf585d300c5fd2"}],"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-rdma host processes RDMA completions and AENs from a remote NVMe-oF peer (InfiniBand/RoCE/iWarp); 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-RDMA 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-RDMA controller connection typical of datacenter storage attachments.\nS:U - The use-after-free corrupts kernel memory in the local host’s NVMe-RDMA 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 SQE and related queue 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.\nA:H - The UAF can cause kernel oops/panic or hangs during admin-queue teardown even without a full exploit."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:52:18.532Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"4.19.231"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.4.181"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.10.102"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.15.25"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.16.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.8","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/5593f72d1922403c11749532e3a0aa4cf61414e9","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d411b2a5da68b8a130c23097014434ac140a2ace","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/324f5bdc52ecb6a6dadb31a62823ef8c709d1439","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/646952b2210f19e584d2bf9eb5d092abdca2fcc1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ea86027ac467a055849c4945906f799e7f65ab99","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/b6bb1722f34bbdbabed27acdceaf585d300c5fd2","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T15:25:00.328Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-48788","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:59:45.973242Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:16.058Z"}}]}}}