CVE-2021-47378

nvme-rdma: destroy cm id before destroy qp to avoid use after free

Critical · published May 21, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
67.3
In the wild
Unconfirmed
What it is

🔥 A use-after-free vulnerability in the Linux kernel could lead to catastrophic crashes! 🤯 Think of it like a restaurant where the chef serves meals from a kitchen that’s already been closed. If patrons come in after the closure, they might get served expired ingredients, leading to some real stomach aches! If exploited, this vulnerability could lead to memory corruption, resulting in unstable systems or even complete crashes. Basically, an attacker could force the kernel to access freed memory space, causing chaos that could disrupt services and compromise system stability.

Put simply

Think of it like a restaurant where the chef serves meals from a kitchen that’s already been closed. If patrons come in after the closure, they might get served expired ingredients, leading to some real stomach aches! This vulnerability arises from the order in which the connection manager (cm_id) and queue pairs (qp) are destroyed. If the qp is destroyed before the cm_id, it can lead to accessing an invalid memory location, causing unexpected behaviors.

What to do

If exploited, this vulnerability could lead to memory corruption, resulting in unstable systems or even complete crashes. Basically, an attacker could force the kernel to access freed memory space, causing chaos that could disrupt services and compromise system stability. Update your Linux kernel to the patched version to eliminate this vulnerability. It’s crucial to ensure that cm_id destruction occurs before qp destruction in your application to prevent exploitation. Check your systems immediately! You've got this! Stay vigilant, patch up, and keep your systems secure! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01175 · 67.3th percentile
Published
2024-05-21T15:03Z
EPSS history
Timeline
  • 21 MAY 15:03Z
    nvme-rdma: destroy cm id before destroy qp to avoid use after free
    cvelistv5