CVE-2026-139138 (GCVE-0-2026-139138)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:31 – Updated: 2026-11-30 13:31
VLAI
Title
ice: use reference counting and SRCU for PTP port access
Summary
In the Linux kernel, the following vulnerability has been resolved: ice: use reference counting and SRCU for PTP port access The ice adapter structure maintains a list of ports associated with the adapter. This is used for supporting PTP, where the clock owner must handle many operations that require access to the PTP port structures of the associated PFs. This is implemented using a linked list and a mutex. This sort of works, but a few places within the code do not acquire the mutex when iterating the list. This includes ice_ptp_flush_all_tx_tracker(), ice_ptp_restart_all_phy(), and ice_ptp_prepare_rebuild_sec(). Fixing this is tricky, especially since it is not clear if we can simply acquire the lock around the complete iterations. The pattern of use for the port list is read-mostly with modifications only happening during PF initialization when elements are inserted. This typically only happens during early boot, though a PF could in principle be removed or loaded at arbitrary times via bind and unbind operations. The use of a mutex does mean the driver can sleep while holding it, but it still creates complicates with lock ordering and prevents iterating the list in any code path that *can't* sleep. Instead, use SRCU primitives for the port linked list, along with a reference count on the port. The kref reference counter ensures that a PF will have a valid lifetime and not be removed until the reference is released. Note that this change focuses solely on the port list and does not make an effort to resolve access to ctrl_pf, which is currently being investigated by another developer. Use of sleepable RCU is required because we often iterate the PTP port list and perform operations that might sleep. Attempts at implementing regular RCU have thus far not proven to be acceptable. The remove path first removes the port from the list, and we use kref_get_unless_zero to ensure that such ports are skipped when iterating the list. This ensures that once a port starts removing we will drop references and no longer be able to acquire new ones. This avoids loop iterations chaining together to indefinitely block removal. The ice_ptp_release_port_srcu() function is used as the release function for the kref_put() call. This uses wake_up_var() to wake the removing thread. The waiting thread will block until the final reference has been removed, then it will use synchronize_srcu() to ensure any outstanding SRCU critical sections have had the necessary grace period. This flow ensures that accesses to ports via the adapter port list will remain valid until both the SRCU critical sections have ended and all the references to the ports have been dropped. Strictly speaking, SRCU alone might be sufficient for existing code paths, but the reference count allows the option for passing a pointer to the port on to other functions if necessary in the future.
Severity
No CVSS data available.
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: e800654e85b5b27966fc6493201f5f8cf658beb6 , < 85525fab62d8dbec58445de0c1ced59da4bd2d70 (git)
Affected: e800654e85b5b27966fc6493201f5f8cf658beb6 , < 91b962d7059d63a8566868be6f2871ed3c2cbe89 (git)
Affected: e800654e85b5b27966fc6493201f5f8cf658beb6 , < d5d859a6efff473d799d35999a35aa764dcc185b (git)
Affected: 2f59743be4d9568cad2d9cf697d1b897975421ed (git)
Affected: 6.12.11 , < 6.13 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 6.18.66 , ≤ 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": [
            "drivers/net/ethernet/intel/ice/ice_adapter.c",
            "drivers/net/ethernet/intel/ice/ice_adapter.h",
            "drivers/net/ethernet/intel/ice/ice_ptp.c",
            "drivers/net/ethernet/intel/ice/ice_ptp.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "85525fab62d8dbec58445de0c1ced59da4bd2d70",
              "status": "affected",
              "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
              "versionType": "git"
            },
            {
              "lessThan": "91b962d7059d63a8566868be6f2871ed3c2cbe89",
              "status": "affected",
              "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
              "versionType": "git"
            },
            {
              "lessThan": "d5d859a6efff473d799d35999a35aa764dcc185b",
              "status": "affected",
              "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "2f59743be4d9568cad2d9cf697d1b897975421ed",
              "versionType": "git"
            },
            {
              "lessThan": "6.13",
              "status": "affected",
              "version": "6.12.11",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/net/ethernet/intel/ice/ice_adapter.c",
            "drivers/net/ethernet/intel/ice/ice_adapter.h",
            "drivers/net/ethernet/intel/ice/ice_ptp.c",
            "drivers/net/ethernet/intel/ice/ice_ptp.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.66",
              "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.18.66",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.12.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nice: use reference counting and SRCU for PTP port access\n\nThe ice adapter structure maintains a list of ports associated with the\nadapter. This is used for supporting PTP, where the clock owner must handle\nmany operations that require access to the PTP port structures of the\nassociated PFs.\n\nThis is implemented using a linked list and a mutex. This sort of works,\nbut a few places within the code do not acquire the mutex when iterating\nthe list. This includes ice_ptp_flush_all_tx_tracker(),\nice_ptp_restart_all_phy(), and ice_ptp_prepare_rebuild_sec().\n\nFixing this is tricky, especially since it is not clear if we can simply\nacquire the lock around the complete iterations.\n\nThe pattern of use for the port list is read-mostly with modifications only\nhappening during PF initialization when elements are inserted. This\ntypically only happens during early boot, though a PF could in principle be\nremoved or loaded at arbitrary times via bind and unbind operations.\n\nThe use of a mutex does mean the driver can sleep while holding it, but it\nstill creates complicates with lock ordering and prevents iterating the\nlist in any code path that *can\u0027t* sleep.\n\nInstead, use SRCU primitives for the port linked list, along with a\nreference count on the port. The kref reference counter ensures that a PF\nwill have a valid lifetime and not be removed until the reference is\nreleased. Note that this change focuses solely on the port list and does\nnot make an effort to resolve access to ctrl_pf, which is currently being\ninvestigated by another developer.\n\nUse of sleepable RCU is required because we often iterate the PTP port list\nand perform operations that might sleep. Attempts at implementing regular\nRCU have thus far not proven to be acceptable.\n\nThe remove path first removes the port from the list, and we use\nkref_get_unless_zero to ensure that such ports are skipped when iterating\nthe list. This ensures that once a port starts removing we will drop\nreferences and no longer be able to acquire new ones. This avoids loop\niterations chaining together to indefinitely block removal.\n\nThe ice_ptp_release_port_srcu() function is used as the release function\nfor the kref_put() call. This uses wake_up_var() to wake the removing\nthread. The waiting thread will block until the final reference has been\nremoved, then it will use synchronize_srcu() to ensure any outstanding SRCU\ncritical sections have had the necessary grace period.\n\nThis flow ensures that accesses to ports via the adapter port list will\nremain valid until both the SRCU critical sections have ended and all the\nreferences to the ports have been dropped. Strictly speaking, SRCU alone\nmight be sufficient for existing code paths, but the reference count allows\nthe option for passing a pointer to the port on to other functions if\nnecessary in the future."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-30T13:31:55.982Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/85525fab62d8dbec58445de0c1ced59da4bd2d70"
        },
        {
          "url": "https://git.kernel.org/stable/c/91b962d7059d63a8566868be6f2871ed3c2cbe89"
        },
        {
          "url": "https://git.kernel.org/stable/c/d5d859a6efff473d799d35999a35aa764dcc185b"
        }
      ],
      "title": "ice: use reference counting and SRCU for PTP port access",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139138",
    "datePublished": "2026-11-30T13:31:55.982Z",
    "dateReserved": "2026-11-30T13:22:15.916Z",
    "dateUpdated": "2026-11-30T13:31:55.982Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139138",
      "date": "2026-12-04",
      "epss": "0.00199",
      "percentile": "0.10133"
    },
    "microsoft_vex": {
      "current_release_date": "2026-12-02T01:12:38.000Z",
      "cve": "CVE-2026-139138",
      "id": "msrc_CVE-2026-139138",
      "initial_release_date": "2026-12-02T01:12:38.000Z",
      "product_status:under_investigation": "1",
      "source": "Microsoft CSAF VEX",
      "status": "final",
      "title": "ice: use reference counting and SRCU for PTP port access",
      "url": "https://msrc.microsoft.com/csaf/vex/2026/msrc_cve-2026-139138.json",
      "version": "1"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/intel/ice/ice_adapter.c",
                  "drivers/net/ethernet/intel/ice/ice_adapter.h",
                  "drivers/net/ethernet/intel/ice/ice_ptp.c",
                  "drivers/net/ethernet/intel/ice/ice_ptp.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "85525fab62d8dbec58445de0c1ced59da4bd2d70",
                    "status": "affected",
                    "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "91b962d7059d63a8566868be6f2871ed3c2cbe89",
                    "status": "affected",
                    "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d5d859a6efff473d799d35999a35aa764dcc185b",
                    "status": "affected",
                    "version": "e800654e85b5b27966fc6493201f5f8cf658beb6",
                    "versionType": "git"
                  },
                  {
                    "status": "affected",
                    "version": "2f59743be4d9568cad2d9cf697d1b897975421ed",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "6.13",
                    "status": "affected",
                    "version": "6.12.11",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/net/ethernet/intel/ice/ice_adapter.c",
                  "drivers/net/ethernet/intel/ice/ice_adapter.h",
                  "drivers/net/ethernet/intel/ice/ice_ptp.c",
                  "drivers/net/ethernet/intel/ice/ice_ptp.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "6.13"
                  },
                  {
                    "lessThan": "6.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.66",
                    "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\nice: use reference counting and SRCU for PTP port access\n\nThe ice adapter structure maintains a list of ports associated with the\nadapter. This is used for supporting PTP, where the clock owner must handle\nmany operations that require access to the PTP port structures of the\nassociated PFs.\n\nThis is implemented using a linked list and a mutex. This sort of works,\nbut a few places within the code do not acquire the mutex when iterating\nthe list. This includes ice_ptp_flush_all_tx_tracker(),\nice_ptp_restart_all_phy(), and ice_ptp_prepare_rebuild_sec().\n\nFixing this is tricky, especially since it is not clear if we can simply\nacquire the lock around the complete iterations.\n\nThe pattern of use for the port list is read-mostly with modifications only\nhappening during PF initialization when elements are inserted. This\ntypically only happens during early boot, though a PF could in principle be\nremoved or loaded at arbitrary times via bind and unbind operations.\n\nThe use of a mutex does mean the driver can sleep while holding it, but it\nstill creates complicates with lock ordering and prevents iterating the\nlist in any code path that *can\u0027t* sleep.\n\nInstead, use SRCU primitives for the port linked list, along with a\nreference count on the port. The kref reference counter ensures that a PF\nwill have a valid lifetime and not be removed until the reference is\nreleased. Note that this change focuses solely on the port list and does\nnot make an effort to resolve access to ctrl_pf, which is currently being\ninvestigated by another developer.\n\nUse of sleepable RCU is required because we often iterate the PTP port list\nand perform operations that might sleep. Attempts at implementing regular\nRCU have thus far not proven to be acceptable.\n\nThe remove path first removes the port from the list, and we use\nkref_get_unless_zero to ensure that such ports are skipped when iterating\nthe list. This ensures that once a port starts removing we will drop\nreferences and no longer be able to acquire new ones. This avoids loop\niterations chaining together to indefinitely block removal.\n\nThe ice_ptp_release_port_srcu() function is used as the release function\nfor the kref_put() call. This uses wake_up_var() to wake the removing\nthread. The waiting thread will block until the final reference has been\nremoved, then it will use synchronize_srcu() to ensure any outstanding SRCU\ncritical sections have had the necessary grace period.\n\nThis flow ensures that accesses to ports via the adapter port list will\nremain valid until both the SRCU critical sections have ended and all the\nreferences to the ports have been dropped. Strictly speaking, SRCU alone\nmight be sufficient for existing code paths, but the reference count allows\nthe option for passing a pointer to the port on to other functions if\nnecessary in the future."
          }
        ],
        "id": "CVE-2026-139138",
        "lastModified": "2026-11-30T14:18:31.120",
        "metrics": {},
        "published": "2026-11-30T14:18:31.120",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/85525fab62d8dbec58445de0c1ced59da4bd2d70"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/91b962d7059d63a8566868be6f2871ed3c2cbe89"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d5d859a6efff473d799d35999a35aa764dcc185b"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T05:30:43+00:00",
      "cve": "CVE-2026-139138",
      "id": "CVE-2026-139138",
      "initial_release_date": "2026-11-30T13:31:55.982000+00:00",
      "product_status:known_affected": "187",
      "product_status:known_not_affected": "93",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in ice driver PTP port handling",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139138.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.