CVE-2026-139348 (GCVE-0-2026-139348)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:33 – Updated: 2026-12-01 05:42
VLAI
Title
net/smc: hold a reference on net_device returned by pnet_find_base_ndev()
Summary
In the Linux kernel, the following vulnerability has been resolved: net/smc: hold a reference on net_device returned by pnet_find_base_ndev() pnet_find_base_ndev() resolves the base net_device for stacked devices under RTNL, then drops the lock and returns the raw pointer without taking a reference. All three callers dereference the pointer after RTNL has been released, creating a use-after-free window if the device is concurrently unregistered. Take a reference with netdev_hold() before dropping RTNL and add the matching netdev_put() in every return path of the three callers: - smc_pnet_add_eth() - smc_pnet_find_roce_by_pnetid() - smc_pnet_find_ism_by_pnetid() Found by code analysis, confirmed with a proof-of-concept that triggers a KASAN slab-use-after-free report.
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < e3f992158d96d47aae01aa76c5e35af941d726c2 (git)
Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < 6176fa6b14c1ab439936b6d8ceda9a38dfb149dd (git)
Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < bd8ea7ddb909807b2200e4d72b38a0bc7d746298 (git)
Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98 (git)
Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < 521c06e5d15386013de2196aa6917039ecf192ce (git)
Affected: 0afff91c6f5ecef27715ea71e34dc2baacba1060 , < e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.19
Unaffected: 0 , < 4.19 (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "net/smc/smc_pnet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "e3f992158d96d47aae01aa76c5e35af941d726c2",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            },
            {
              "lessThan": "6176fa6b14c1ab439936b6d8ceda9a38dfb149dd",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            },
            {
              "lessThan": "bd8ea7ddb909807b2200e4d72b38a0bc7d746298",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            },
            {
              "lessThan": "ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            },
            {
              "lessThan": "521c06e5d15386013de2196aa6917039ecf192ce",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            },
            {
              "lessThan": "e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e",
              "status": "affected",
              "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "net/smc/smc_pnet.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.19"
            },
            {
              "lessThan": "4.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.119",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "4.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: hold a reference on net_device returned by pnet_find_base_ndev()\n\npnet_find_base_ndev() resolves the base net_device for stacked devices\nunder RTNL, then drops the lock and returns the raw pointer without\ntaking a reference.  All three callers dereference the pointer after\nRTNL has been released, creating a use-after-free window if the device\nis concurrently unregistered.\n\nTake a reference with netdev_hold() before dropping RTNL and add the\nmatching netdev_put() in every return path of the three callers:\n\n  - smc_pnet_add_eth()\n  - smc_pnet_find_roce_by_pnetid()\n  - smc_pnet_find_ism_by_pnetid()\n\nFound by code analysis, confirmed with a proof-of-concept that triggers\na KASAN slab-use-after-free report."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Reached via a local connect() on an AF_SMC socket: __smc_connect -\u003e smc_find_proposal_devices -\u003e smc_pnet_find_ism_resource/roce_resource -\u003e pnet_find_base_ndev. The free comes from local rtnetlink deletion of a bond slave. A remote SMC peer can reach the server-side lookup but cannot unregister the base netdev, so no wire message supplies the bug.\nAC:L - The attacker runs both sides of the race: SMC connects that read base_ndev after pnet_find_base_ndev drops RTNL, and RTM_DELLINK of the bond slave. They can repeat it freely and widen the window by contending pnettable-\u003elock between the dev_net(base_ndev) reads. No ISM/RoCE hardware is needed and the commit reports a KASAN-confirmed PoC.\nPR:L - smc_create() has no capability check and AF_SMC autoloads. Creating veth/bond, enslaving and deleting the slave need only CAP_NET_ADMIN in an unprivileged user+net namespace (unshare -Urn). Only the smc_pnet_add_eth caller (SMC_PNETID_ADD) is GENL_ADMIN_PERM root-only, and the socket path does not need it.\nUI:N - The attacker sets up the netns, bond, veth, the AF_SMC listener that sets syn_smc, the connecting client and the slave deletion entirely on their own; no other user or admin action is needed.\nS:U - Corruption happens in the kernel\u0027s own net_device heap memory and leads to ordinary kernel privilege escalation or a crash in the same authority; no guest/host or IOMMU boundary is crossed.\nC:H - After the bond-slave net_device is freed, SMC reads base_ndev-\u003end_net (and dev.parent on s390) from reclaimable kvmalloc memory. A sprayed object makes that a forged struct net pointer, which net_generic() and the pnettable list walk dereference, giving controlled kernel reads.\nI:H - The forged nd_net from the freed net_device feeds mutex_lock/mutex_unlock(\u0026pnettable-\u003elock) at an attacker-derived address. The owner cmpxchg writes the current task pointer there and then clears it, a kernel write primitive usable for further corruption.\nA:H - Dereferencing a dangling base_ndev, or the bogus struct net/mutex derived from it, after the slave is unregistered causes a KASAN splat or oops. With panic_on_oops that takes down the host, and it can be retried at will."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:42:22.419Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2"
        },
        {
          "url": "https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd"
        },
        {
          "url": "https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298"
        },
        {
          "url": "https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98"
        },
        {
          "url": "https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce"
        },
        {
          "url": "https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e"
        }
      ],
      "title": "net/smc: hold a reference on net_device returned by pnet_find_base_ndev()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139348",
    "datePublished": "2026-11-30T13:33:55.855Z",
    "dateReserved": "2026-11-30T13:22:15.928Z",
    "dateUpdated": "2026-12-01T05:42:22.419Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139348",
      "date": "2026-12-04",
      "epss": "0.00182",
      "percentile": "0.08099"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "net/smc/smc_pnet.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "e3f992158d96d47aae01aa76c5e35af941d726c2",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6176fa6b14c1ab439936b6d8ceda9a38dfb149dd",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "bd8ea7ddb909807b2200e4d72b38a0bc7d746298",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "521c06e5d15386013de2196aa6917039ecf192ce",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e",
                    "status": "affected",
                    "version": "0afff91c6f5ecef27715ea71e34dc2baacba1060",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "net/smc/smc_pnet.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.19"
                  },
                  {
                    "lessThan": "4.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/smc: hold a reference on net_device returned by pnet_find_base_ndev()\n\npnet_find_base_ndev() resolves the base net_device for stacked devices\nunder RTNL, then drops the lock and returns the raw pointer without\ntaking a reference.  All three callers dereference the pointer after\nRTNL has been released, creating a use-after-free window if the device\nis concurrently unregistered.\n\nTake a reference with netdev_hold() before dropping RTNL and add the\nmatching netdev_put() in every return path of the three callers:\n\n  - smc_pnet_add_eth()\n  - smc_pnet_find_roce_by_pnetid()\n  - smc_pnet_find_ism_by_pnetid()\n\nFound by code analysis, confirmed with a proof-of-concept that triggers\na KASAN slab-use-after-free report."
          }
        ],
        "id": "CVE-2026-139348",
        "lastModified": "2026-12-01T06:17:42.690",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:19:00.037",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/521c06e5d15386013de2196aa6917039ecf192ce"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/6176fa6b14c1ab439936b6d8ceda9a38dfb149dd"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/bd8ea7ddb909807b2200e4d72b38a0bc7d746298"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e3f992158d96d47aae01aa76c5e35af941d726c2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e6435b2cc5fdf008cdb67ad9a811a266e8ac9c1e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ea3bf68cfa530b4c1e5a4fe15fca5409a32b8c98"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Important",
      "current_release_date": "2026-12-01T08:25:03+00:00",
      "cve": "CVE-2026-139348",
      "id": "CVE-2026-139348",
      "initial_release_date": "2026-11-30T13:33:55.855000+00:00",
      "product_status:known_affected": "238",
      "product_status:known_not_affected": "42",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Privilege escalation via use-after-free in SMC subsystem",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139348.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    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.