---
id: CVE-2026-31493
title: 'RDMA/efa: Fix use of completion ctx after free'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  RDMA/efa: Fix use of completion ctx after free

  On admin queue completion handling, if the admin command completed with
  error we print data from the completion context.…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a <
    8c24b5179af260a5f36571c992d29aab1f448544
  - >-
    Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a <
    7ba09d85f177e9f5f64b881f33dbcb57b2cf23d5
  - >-
    Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a <
    0dd98aea1c0c45987fa2dd92f988b0eb1a72c125
  - >-
    Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a <
    1cf95fe5dc5471efea947b4c6f8913da6bc7976e
  - >-
    Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a <
    ef3b06742c8a201d0e83edc9a33a89a4fe3009f8
  - Linux 5.12
published: '2026-04-22'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:39:20.213Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-31493'
references:
  - url: 'https://git.kernel.org/stable/c/8c24b5179af260a5f36571c992d29aab1f448544'
  - url: 'https://git.kernel.org/stable/c/7ba09d85f177e9f5f64b881f33dbcb57b2cf23d5'
  - url: 'https://git.kernel.org/stable/c/0dd98aea1c0c45987fa2dd92f988b0eb1a72c125'
  - url: 'https://git.kernel.org/stable/c/1cf95fe5dc5471efea947b4c6f8913da6bc7976e'
  - url: 'https://git.kernel.org/stable/c/ef3b06742c8a201d0e83edc9a33a89a4fe3009f8'
tags:
  - cve.org
epss: 0.00173
epssPercentile: 0.06401
ingestedAt: '2026-10-21T12:48:53.665Z'
---

## Overview

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

RDMA/efa: Fix use of completion ctx after free

On admin queue completion handling, if the admin command completed with
error we print data from the completion context. The issue is that we
already freed the completion context in polling/interrupts handler which
means we print data from context in an unknown state (it might be
already used again).
Change the admin submission flow so alloc/dealloc of the context will be
symmetric and dealloc will be called after any potential use of the
context.

## Affected

- `Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a < 8c24b5179af260a5f36571c992d29aab1f448544`
- `Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a < 7ba09d85f177e9f5f64b881f33dbcb57b2cf23d5`
- `Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a < 0dd98aea1c0c45987fa2dd92f988b0eb1a72c125`
- `Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a < 1cf95fe5dc5471efea947b4c6f8913da6bc7976e`
- `Linux >= 68fb9f3e312a36e49fd05ec2d6b668daf2c4931a < ef3b06742c8a201d0e83edc9a33a89a4fe3009f8`
- `Linux 5.12`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
