net: mana: Add NULL guards in teardown path to prevent panic on attach failure (Linux Linux)

CVE-2026-63973
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.16 % · centile 5 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: net: mana: Add NULL guards in teardown path to prevent panic on attach failure When queue allocation fails partway through, the error cleanup frees and NULLs apc->tx_qp and apc->rxqs. Multiple teardown paths such as mana_remove(), mana_change_mtu() recovery, and internal error handling in mana_alloc_queues() can subsequently call into functions that dereference these pointers without NULL checks: - mana_chn_setxdp() dereferences apc->rxqs[0], causing a NULL pointer dereference panic (CR2: 0000000000000000 at mana_chn_setxdp+0x26). - mana_destroy_vport() iterates apc->rxqs without a NULL check. - mana_fence_rqs() iterates apc->rxqs without a NULL check. - mana_dealloc_queues() iterates apc->tx_qp without a NULL check. Add NULL guards for apc->rxqs in mana_fence_rqs(), mana_destroy_vport(), and before the mana_chn_setxdp() call. Add a NULL guard for apc->tx_qp in mana_dealloc_queues() to skip TX queue draining when TX queues were never allocated or already freed.

Faiblesses (CWE)

  • CWE-476 — Déréférencement de pointeur nul

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < da7e4a1aaf397af6a094f640c92d6bc7564c10db ; affected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < 95e414f8324385771bdfd6d497a01d5593813ccb ; affected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < 26a96fa81496afe7d162d172ccdc8cb9dbc685d2 ; affected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < da87896f34e0a51489811d1a684e2953099ca98f ; affected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < 0a9c520fdcb1cb2e79c163c12d359b5e1ee40007 ; affected ca9c54d2d6a5ab2430c4eda364c77125d62e5e0f < 17bfe0a8c014ee1d542ad352cd6a0a505361664a
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 6.1.176 ≤ 6.1.* ; unaffected 6.6.143 ≤ 6.6.* ; unaffected 6.12.93 ≤ 6.12.* ; unaffected 6.18.35 ≤ 6.18.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD