CVE-2022-48858 (GCVE-0-2022-48858)

Vulnerability from cvelistv5 – Published: 2024-07-16 12:25 – Updated: 2026-08-05 08:52
VLAI
Title
net/mlx5: Fix a race on command flush flow
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Fix a race on command flush flow Fix a refcount use after free warning due to a race on command entry. Such race occurs when one of the commands releases its last refcount and frees its index and entry while another process running command flush flow takes refcount to this command entry. The process which handles commands flush may see this command as needed to be flushed if the other process released its refcount but didn't release the index yet. Fix it by adding the needed spin lock. It fixes the following warning trace: refcount_t: addition on 0; use-after-free. WARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0 ... RIP: 0010:refcount_warn_saturate+0x80/0xe0 ... Call Trace: <TASK> mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core] mlx5_cmd_flush+0x3a/0xf0 [mlx5_core] enter_error_state+0x44/0x80 [mlx5_core] mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core] process_one_work+0x1be/0x390 worker_thread+0x4d/0x3d0 ? rescuer_thread+0x350/0x350 kthread+0x141/0x160 ? set_kthread_struct+0x40/0x40 ret_from_fork+0x1f/0x30 </TASK>
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator (v2.0.3)
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 073fff8102062cd675170ceb54d90da22fe7e668 , < 1a4017926eeea56c7540cc41b42106746ee8a0ee (git)
Affected: 50b2412b7e7862c5af0cbf4b10d93bc5c712d021 , < f3331bc17449f15832c31823f27573f4c0e13e5f (git)
Affected: 50b2412b7e7862c5af0cbf4b10d93bc5c712d021 , < 7c519f769f555ff7d9d4ccba3497bbb589df360a (git)
Affected: 50b2412b7e7862c5af0cbf4b10d93bc5c712d021 , < 0401bfb27a91d7bdd74b1635c1aae57cbb128da6 (git)
Affected: 50b2412b7e7862c5af0cbf4b10d93bc5c712d021 , < 063bd355595428750803d8736a9bb7c8db67d42d (git)
Affected: da87ea137373689dec9d3fafa34a57787320a4b3 (git)
Affected: 5.4.71 , < 5.4.185 (semver)
Affected: 5.8.15 , < 5.9 (semver)
Create a notification for this product.
Linux Linux Affected: 5.9
Unaffected: 0 , < 5.9 (semver)
Unaffected: 5.4.185 , ≤ 5.4.* (semver)
Unaffected: 5.10.106 , ≤ 5.10.* (semver)
Unaffected: 5.15.29 , ≤ 5.15.* (semver)
Unaffected: 5.16.15 , ≤ 5.16.* (semver)
Unaffected: 5.17 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T15:25:01.885Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "other": {
              "content": {
                "id": "CVE-2022-48858",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-09-10T16:25:42.661996Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-09-11T17:34:07.754Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "1a4017926eeea56c7540cc41b42106746ee8a0ee",
              "status": "affected",
              "version": "073fff8102062cd675170ceb54d90da22fe7e668",
              "versionType": "git"
            },
            {
              "lessThan": "f3331bc17449f15832c31823f27573f4c0e13e5f",
              "status": "affected",
              "version": "50b2412b7e7862c5af0cbf4b10d93bc5c712d021",
              "versionType": "git"
            },
            {
              "lessThan": "7c519f769f555ff7d9d4ccba3497bbb589df360a",
              "status": "affected",
              "version": "50b2412b7e7862c5af0cbf4b10d93bc5c712d021",
              "versionType": "git"
            },
            {
              "lessThan": "0401bfb27a91d7bdd74b1635c1aae57cbb128da6",
              "status": "affected",
              "version": "50b2412b7e7862c5af0cbf4b10d93bc5c712d021",
              "versionType": "git"
            },
            {
              "lessThan": "063bd355595428750803d8736a9bb7c8db67d42d",
              "status": "affected",
              "version": "50b2412b7e7862c5af0cbf4b10d93bc5c712d021",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "da87ea137373689dec9d3fafa34a57787320a4b3",
              "versionType": "git"
            },
            {
              "lessThan": "5.4.185",
              "status": "affected",
              "version": "5.4.71",
              "versionType": "semver"
            },
            {
              "lessThan": "5.9",
              "status": "affected",
              "version": "5.8.15",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/mellanox/mlx5/core/cmd.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.9"
            },
            {
              "lessThan": "5.9",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.185",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.106",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.29",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.15",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.17",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.185",
                  "versionStartIncluding": "5.4.71",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.106",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.29",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.15",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17",
                  "versionStartIncluding": "5.9",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "5.8.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix a race on command flush flow\n\nFix a refcount use after free warning due to a race on command entry.\nSuch race occurs when one of the commands releases its last refcount and\nfrees its index and entry while another process running command flush\nflow takes refcount to this command entry. The process which handles\ncommands flush may see this command as needed to be flushed if the other\nprocess released its refcount but didn\u0027t release the index yet. Fix it\nby adding the needed spin lock.\n\nIt fixes the following warning trace:\n\nrefcount_t: addition on 0; use-after-free.\nWARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0\n...\nRIP: 0010:refcount_warn_saturate+0x80/0xe0\n...\nCall Trace:\n \u003cTASK\u003e\n mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core]\n mlx5_cmd_flush+0x3a/0xf0 [mlx5_core]\n enter_error_state+0x44/0x80 [mlx5_core]\n mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core]\n process_one_work+0x1be/0x390\n worker_thread+0x4d/0x3d0\n ? rescuer_thread+0x350/0x350\n kthread+0x141/0x160\n ? set_kthread_struct+0x40/0x40\n ret_from_fork+0x1f/0x30\n \u003c/TASK\u003e"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The race is in the local mlx5 firmware command interface (cmd_ent_put vs mlx5_cmd_trigger_completions during mlx5_cmd_flush), reached via locally issued FW commands (RDMA uverbs/DEVX, netdev offloads) and the device health/error path, not via remote packet processing.\nAC:H - mlx5_cmd_flush runs only after enter_error_state (fatal FW syndrome, PCI/AER, or admin/fw-reset forced error); an attacker can keep commands in flight to widen the window but cannot induce that device-internal-error transition, matching the CVE-2024-38555 model for this path.\nPR:L - Unprivileged local users can keep mlx5_cmd_work_ent entries in flight through the RDMA character device (commonly mode 0666 / uverbs), without CAP_NET_ADMIN or real root; that is the attacker-controlled half of the UAF race.\nUI:N - No victim action is required; once commands are outstanding and the device enters error state, the flush/completion race proceeds in kernel workqueue/IRQ context without further user interaction.\nS:U - The use-after-free corrupts host-kernel mlx5 command-entry heap state within a single OS security authority; it is not a VM escape, IOMMU bypass, or other cross-boundary compromise.\nC:H - The race frees mlx5_cmd_work_ent while mlx5_cmd_trigger_completions still cmd_ent_get/comp-handles it (refcount addition-on-0 / UAF), so a reclaimed entry yields arbitrary kernel read primitives per UAF guidance.\nI:H - The same UAF exposes callback/context and command message pointers in the freed entry to mlx5_cmd_comp_handler, enabling heap write and control-flow hijack after spraying.\nA:H - The reported impact is a refcount_t use-after-free WARN in the flush path (fatal under panic_on_warn), and any UAF of the command entry can oops/panic or wedge the command interface."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:52:39.770Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee"
        },
        {
          "url": "https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a"
        },
        {
          "url": "https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6"
        },
        {
          "url": "https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d"
        }
      ],
      "title": "net/mlx5: Fix a race on command flush flow",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-48858",
    "datePublished": "2024-07-16T12:25:23.123Z",
    "dateReserved": "2024-07-16T11:38:08.919Z",
    "dateUpdated": "2026-08-05T08:52:39.770Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-48858",
      "date": "2026-08-09",
      "epss": "0.00178",
      "percentile": "0.07474"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-48858\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-07-16T13:15:12.803\",\"lastModified\":\"2026-06-17T05:16:23.963\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet/mlx5: Fix a race on command flush flow\\n\\nFix a refcount use after free warning due to a race on command entry.\\nSuch race occurs when one of the commands releases its last refcount and\\nfrees its index and entry while another process running command flush\\nflow takes refcount to this command entry. The process which handles\\ncommands flush may see this command as needed to be flushed if the other\\nprocess released its refcount but didn\u0027t release the index yet. Fix it\\nby adding the needed spin lock.\\n\\nIt fixes the following warning trace:\\n\\nrefcount_t: addition on 0; use-after-free.\\nWARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0\\n...\\nRIP: 0010:refcount_warn_saturate+0x80/0xe0\\n...\\nCall Trace:\\n \u003cTASK\u003e\\n mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core]\\n mlx5_cmd_flush+0x3a/0xf0 [mlx5_core]\\n enter_error_state+0x44/0x80 [mlx5_core]\\n mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core]\\n process_one_work+0x1be/0x390\\n worker_thread+0x4d/0x3d0\\n ? rescuer_thread+0x350/0x350\\n kthread+0x141/0x160\\n ? set_kthread_struct+0x40/0x40\\n ret_from_fork+0x1f/0x30\\n \u003c/TASK\u003e\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: net/mlx5: Corregir una ejecuci\u00f3n en el flujo de descarga de comandos. Corregir una advertencia de refcount use after free debido a una ejecuci\u00f3n en la entrada de comandos. Dicha ejecuci\u00f3n ocurre cuando uno de los comandos libera su \u00faltimo recuento y libera su \u00edndice y entrada, mientras que otro proceso que ejecuta el flujo de descarga de comandos toma el recuento de esta entrada de comando. El proceso que maneja los comandos de vaciado puede considerar que este comando es necesario para vaciarlo si el otro proceso public\u00f3 su recuento pero a\u00fan no public\u00f3 el \u00edndice. Solucionarlo agregando el bloqueo de giro necesario. Corrige el siguiente seguimiento de advertencia: refcount_t: adici\u00f3n en 0; use-after-free. ADVERTENCIA: CPU: 11 PID: 540311 en lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0... RIP: 0010:refcount_warn_saturate+0x80/0xe0... Seguimiento de llamadas:  mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core] mlx5_cmd_flush+0x3a/0xf0 [mlx5_core] enter_error_state+0x44/0x80 [mlx5_core] mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core] Process_one_work+0x1be/0x390 trabajador_thread+0x4d/0x3d0 ? hilo_rescate+0x350/0x350 khilo+0x141/0x160 ? set_kthread_struct+0x40/0x40 ret_from_fork+0x1f/0x30 \"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/net/ethernet/mellanox/mlx5/core/cmd.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"073fff8102062cd675170ceb54d90da22fe7e668\",\"lessThan\":\"1a4017926eeea56c7540cc41b42106746ee8a0ee\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\",\"lessThan\":\"f3331bc17449f15832c31823f27573f4c0e13e5f\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\",\"lessThan\":\"7c519f769f555ff7d9d4ccba3497bbb589df360a\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\",\"lessThan\":\"0401bfb27a91d7bdd74b1635c1aae57cbb128da6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\",\"lessThan\":\"063bd355595428750803d8736a9bb7c8db67d42d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"da87ea137373689dec9d3fafa34a57787320a4b3\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"5.4.71\",\"lessThan\":\"5.4.185\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"5.8.15\",\"lessThan\":\"5.9\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/net/ethernet/mellanox/mlx5/core/cmd.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.9\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.9\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.185\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.106\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.29\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.16.15\",\"lessThanOrEqual\":\"5.16.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.17\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.0,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"HIGH\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.0,\"impactScore\":5.9}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-09-10T16:25:42.661996Z\",\"id\":\"CVE-2022-48858\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-362\"},{\"lang\":\"en\",\"value\":\"CWE-416\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"5.4.185\",\"matchCriteriaId\":\"2C4CE243-C23D-4DE9-8559-E3AE265120F3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.106\",\"matchCriteriaId\":\"6A4F38AC-99A2-48DF-B132-C9F785B309B8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.29\",\"matchCriteriaId\":\"15DC6588-B28F-4637-9A1E-3753B34A40CF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.16.15\",\"matchCriteriaId\":\"83FDEDF2-0E19-4879-91FD-171E66D1B335\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-08-04T19:46:52+00:00",
      "cve": "CVE-2022-48858",
      "id": "CVE-2022-48858",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_affected": "184",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: net/mlx5: Fix a race on command flush flow",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-48858.json",
      "version": "3"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T15:25:01.885Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-48858\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-09-10T16:25:42.661996Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-09-11T12:42:20.826Z\"}}], \"cna\": {\"title\": \"net/mlx5: Fix a race on command flush flow\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 7, \"baseSeverity\": \"HIGH\", \"vectorString\": \"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:L - The race is in the local mlx5 firmware command interface (cmd_ent_put vs mlx5_cmd_trigger_completions during mlx5_cmd_flush), reached via locally issued FW commands (RDMA uverbs/DEVX, netdev offloads) and the device health/error path, not via remote packet processing.\\nAC:H - mlx5_cmd_flush runs only after enter_error_state (fatal FW syndrome, PCI/AER, or admin/fw-reset forced error); an attacker can keep commands in flight to widen the window but cannot induce that device-internal-error transition, matching the CVE-2024-38555 model for this path.\\nPR:L - Unprivileged local users can keep mlx5_cmd_work_ent entries in flight through the RDMA character device (commonly mode 0666 / uverbs), without CAP_NET_ADMIN or real root; that is the attacker-controlled half of the UAF race.\\nUI:N - No victim action is required; once commands are outstanding and the device enters error state, the flush/completion race proceeds in kernel workqueue/IRQ context without further user interaction.\\nS:U - The use-after-free corrupts host-kernel mlx5 command-entry heap state within a single OS security authority; it is not a VM escape, IOMMU bypass, or other cross-boundary compromise.\\nC:H - The race frees mlx5_cmd_work_ent while mlx5_cmd_trigger_completions still cmd_ent_get/comp-handles it (refcount addition-on-0 / UAF), so a reclaimed entry yields arbitrary kernel read primitives per UAF guidance.\\nI:H - The same UAF exposes callback/context and command message pointers in the freed entry to mlx5_cmd_comp_handler, enabling heap write and control-flow hijack after spraying.\\nA:H - The reported impact is a refcount_t use-after-free WARN in the flush path (fatal under panic_on_warn), and any UAF of the command entry can oops/panic or wedge the command interface.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"073fff8102062cd675170ceb54d90da22fe7e668\", \"lessThan\": \"1a4017926eeea56c7540cc41b42106746ee8a0ee\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\", \"lessThan\": \"f3331bc17449f15832c31823f27573f4c0e13e5f\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\", \"lessThan\": \"7c519f769f555ff7d9d4ccba3497bbb589df360a\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\", \"lessThan\": \"0401bfb27a91d7bdd74b1635c1aae57cbb128da6\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"50b2412b7e7862c5af0cbf4b10d93bc5c712d021\", \"lessThan\": \"063bd355595428750803d8736a9bb7c8db67d42d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"da87ea137373689dec9d3fafa34a57787320a4b3\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"5.4.71\", \"lessThan\": \"5.4.185\", \"versionType\": \"semver\"}, {\"status\": \"affected\", \"version\": \"5.8.15\", \"lessThan\": \"5.9\", \"versionType\": \"semver\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/cmd.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.9\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.9\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.185\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.106\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.29\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"5.16.15\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.16.*\"}, {\"status\": \"unaffected\", \"version\": \"5.17\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/ethernet/mellanox/mlx5/core/cmd.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/1a4017926eeea56c7540cc41b42106746ee8a0ee\"}, {\"url\": \"https://git.kernel.org/stable/c/f3331bc17449f15832c31823f27573f4c0e13e5f\"}, {\"url\": \"https://git.kernel.org/stable/c/7c519f769f555ff7d9d4ccba3497bbb589df360a\"}, {\"url\": \"https://git.kernel.org/stable/c/0401bfb27a91d7bdd74b1635c1aae57cbb128da6\"}, {\"url\": \"https://git.kernel.org/stable/c/063bd355595428750803d8736a9bb7c8db67d42d\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet/mlx5: Fix a race on command flush flow\\n\\nFix a refcount use after free warning due to a race on command entry.\\nSuch race occurs when one of the commands releases its last refcount and\\nfrees its index and entry while another process running command flush\\nflow takes refcount to this command entry. The process which handles\\ncommands flush may see this command as needed to be flushed if the other\\nprocess released its refcount but didn\u0027t release the index yet. Fix it\\nby adding the needed spin lock.\\n\\nIt fixes the following warning trace:\\n\\nrefcount_t: addition on 0; use-after-free.\\nWARNING: CPU: 11 PID: 540311 at lib/refcount.c:25 refcount_warn_saturate+0x80/0xe0\\n...\\nRIP: 0010:refcount_warn_saturate+0x80/0xe0\\n...\\nCall Trace:\\n \u003cTASK\u003e\\n mlx5_cmd_trigger_completions+0x293/0x340 [mlx5_core]\\n mlx5_cmd_flush+0x3a/0xf0 [mlx5_core]\\n enter_error_state+0x44/0x80 [mlx5_core]\\n mlx5_fw_fatal_reporter_err_work+0x37/0xe0 [mlx5_core]\\n process_one_work+0x1be/0x390\\n worker_thread+0x4d/0x3d0\\n ? rescuer_thread+0x350/0x350\\n kthread+0x141/0x160\\n ? set_kthread_struct+0x40/0x40\\n ret_from_fork+0x1f/0x30\\n \u003c/TASK\u003e\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.185\", \"versionStartIncluding\": \"5.4.71\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.106\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.29\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.16.15\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.17\", \"versionStartIncluding\": \"5.9\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionStartIncluding\": \"5.8.15\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T08:52:39.770Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2022-48858\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T08:52:39.770Z\", \"dateReserved\": \"2024-07-16T11:38:08.919Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-07-16T12:25:23.123Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…