CVE-2025-40348 (GCVE-0-2025-40348)

Vulnerability from cvelistv5 – Published: 2025-12-16 13:30 – Updated: 2026-05-11 21:47
VLAI
Title
slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts
Summary
In the Linux kernel, the following vulnerability has been resolved: slab: Avoid race on slab->obj_exts in alloc_slab_obj_exts If two competing threads enter alloc_slab_obj_exts() and one of them fails to allocate the object extension vector, it might override the valid slab->obj_exts allocated by the other thread with OBJEXTS_ALLOC_FAIL. This will cause the thread that lost this race and expects a valid pointer to dereference a NULL pointer later on. Update slab->obj_exts atomically using cmpxchg() to avoid slab->obj_exts overrides by racing threads. Thanks for Vlastimil and Suren's help with debugging.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 715b6a5b41dae39baeaa40d3386b548bb278b9c2 , < c7af5300d78460fc5037ddc77113ba3dbfe77dc0 (git)
Affected: 07e38a54cabd9b4de7ceb7f075f29ffa463e458a , < 7c34feda6a9a203c9744281f1b6671b7dad2012d (git)
Affected: f7381b9116407ba2a429977c80ff8df953ea9354 , < 6ed8bfd24ce1cb31742b09a3eb557cd008533eec (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.12.54 , < 6.12.56 (semver)
Affected: 6.17.4 , < 6.17.6 (semver)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/slub.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "c7af5300d78460fc5037ddc77113ba3dbfe77dc0",
              "status": "affected",
              "version": "715b6a5b41dae39baeaa40d3386b548bb278b9c2",
              "versionType": "git"
            },
            {
              "lessThan": "7c34feda6a9a203c9744281f1b6671b7dad2012d",
              "status": "affected",
              "version": "07e38a54cabd9b4de7ceb7f075f29ffa463e458a",
              "versionType": "git"
            },
            {
              "lessThan": "6ed8bfd24ce1cb31742b09a3eb557cd008533eec",
              "status": "affected",
              "version": "f7381b9116407ba2a429977c80ff8df953ea9354",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "mm/slub.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6.12.56",
              "status": "affected",
              "version": "6.12.54",
              "versionType": "semver"
            },
            {
              "lessThan": "6.17.6",
              "status": "affected",
              "version": "6.17.4",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.56",
                  "versionStartIncluding": "6.12.54",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.17.6",
                  "versionStartIncluding": "6.17.4",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nslab: Avoid race on slab-\u003eobj_exts in alloc_slab_obj_exts\n\nIf two competing threads enter alloc_slab_obj_exts() and one of them\nfails to allocate the object extension vector, it might override the\nvalid slab-\u003eobj_exts allocated by the other thread with\nOBJEXTS_ALLOC_FAIL. This will cause the thread that lost this race and\nexpects a valid pointer to dereference a NULL pointer later on.\n\nUpdate slab-\u003eobj_exts atomically using cmpxchg() to avoid\nslab-\u003eobj_exts overrides by racing threads.\n\nThanks for Vlastimil and Suren\u0027s help with debugging."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T21:47:37.835Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0"
        },
        {
          "url": "https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d"
        },
        {
          "url": "https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec"
        }
      ],
      "title": "slab: Avoid race on slab-\u003eobj_exts in alloc_slab_obj_exts",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-40348",
    "datePublished": "2025-12-16T13:30:22.368Z",
    "dateReserved": "2025-04-16T07:20:57.187Z",
    "dateUpdated": "2026-05-11T21:47:37.835Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-40348",
      "date": "2026-10-01",
      "epss": "0.00197",
      "percentile": "0.08511"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "mm/slub.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "c7af5300d78460fc5037ddc77113ba3dbfe77dc0",
                    "status": "affected",
                    "version": "715b6a5b41dae39baeaa40d3386b548bb278b9c2",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7c34feda6a9a203c9744281f1b6671b7dad2012d",
                    "status": "affected",
                    "version": "07e38a54cabd9b4de7ceb7f075f29ffa463e458a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6ed8bfd24ce1cb31742b09a3eb557cd008533eec",
                    "status": "affected",
                    "version": "f7381b9116407ba2a429977c80ff8df953ea9354",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "mm/slub.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "6.12.56",
                    "status": "affected",
                    "version": "6.12.54",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.17.6",
                    "status": "affected",
                    "version": "6.17.4",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nslab: Avoid race on slab-\u003eobj_exts in alloc_slab_obj_exts\n\nIf two competing threads enter alloc_slab_obj_exts() and one of them\nfails to allocate the object extension vector, it might override the\nvalid slab-\u003eobj_exts allocated by the other thread with\nOBJEXTS_ALLOC_FAIL. This will cause the thread that lost this race and\nexpects a valid pointer to dereference a NULL pointer later on.\n\nUpdate slab-\u003eobj_exts atomically using cmpxchg() to avoid\nslab-\u003eobj_exts overrides by racing threads.\n\nThanks for Vlastimil and Suren\u0027s help with debugging."
          }
        ],
        "id": "CVE-2025-40348",
        "lastModified": "2026-06-17T09:21:41.850",
        "metrics": {},
        "published": "2025-12-16T14:15:46.583",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/6ed8bfd24ce1cb31742b09a3eb557cd008533eec"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7c34feda6a9a203c9744281f1b6671b7dad2012d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/c7af5300d78460fc5037ddc77113ba3dbfe77dc0"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-06-29T21:32:34+00:00",
      "cve": "CVE-2025-40348",
      "id": "CVE-2025-40348",
      "initial_release_date": "2025-12-16T00:00:00+00:00",
      "product_status:known_affected": "260",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: slab: Avoid race on slab-\u003eobj_exts in alloc_slab_obj_exts",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-40348.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-01T13:42:30Z",
      "cve": "CVE-2025-40348",
      "id": "CVE-2025-40348",
      "initial_release_date": "2025-12-17T00:30:36Z",
      "product_status:known_not_affected": "525",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-40348",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-40348.json",
      "version": "9"
    }
  }
}



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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…