Skip to content
Heist/ feed
Back to feed
UnratedFix available

scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add() sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.189, 6.12.111, 6.18.53, 6.6.158, 7.2.7
CVEs
CVE-2026-98129
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 14:05 UTC · Revision 1

Source evidence

scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()

core-osv · Original source

Published 25 Sept 2026, 10:36 UTC

In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add() sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it.

osv:CVE-2026-98129

Kernel

Fixed versions: 6.1.189, 6.6.158, 6.12.111, 6.18.53, 7.2.7

Complete source record
{
  "id": "c9796ca06256239c9dd417e531da8107a0dc81febe72d58a0e6f95f8c5395b0c",
  "url": "https://osv.dev/vulnerability/CVE-2026-98129",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add() sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it.",
    "evidence": "osv:CVE-2026-98129",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.189",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.158",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.111",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-98129",
      "aliases": [
        "CVE-2026-98129"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "e22bae30667a7e74ed057e00fb6e8c79e0738de3"
                },
                {
                  "fixed": "7e3489b5950e7668355762968a7c7f75fe9bc80d"
                },
                {
                  "fixed": "c848a1bbe110496eff8dcdf7cfbff66a69edae89"
                },
                {
                  "fixed": "5c50137ba11b6e20e7074303dae35ff58d5a0b6f"
                },
                {
                  "fixed": "2f69ed909de9e3d46af9db7dd24b9b80dc31b5ec"
                },
                {
                  "fixed": "5cb58b052cf09dd8e88d92c1d649b3eea5c95d4d"
                },
                {
                  "fixed": "dba9e2181ca5e875f98b8b9b4535cdaab87dcb0d"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98129.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.189"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.158"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.111"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.53"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98129.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.963597448Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2f69ed909de9e3d46af9db7dd24b9b80dc31b5ec",
        "https://git.kernel.org/stable/c/5c50137ba11b6e20e7074303dae35ff58d5a0b6f",
        "https://git.kernel.org/stable/c/5cb58b052cf09dd8e88d92c1d649b3eea5c95d4d",
        "https://git.kernel.org/stable/c/7e3489b5950e7668355762968a7c7f75fe9bc80d",
        "https://git.kernel.org/stable/c/c848a1bbe110496eff8dcdf7cfbff66a69edae89",
        "https://git.kernel.org/stable/c/dba9e2181ca5e875f98b8b9b4535cdaab87dcb0d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98129.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-98129",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98129.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-98129",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 519563,
  "published_at": "2026-09-25T10:36:09.614+00:00"
}