CVE-2026-31727 (GCVE-0-2026-31727)

Vulnerability from cvelistv5 – Published: 2026-05-01 14:14 – Updated: 2026-06-19 11:58
VLAI
Title
usb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo
Summary
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo Commit ec35c1969650 ("usb: gadget: f_ncm: Fix net_device lifecycle with device_move") reparents the gadget device to /sys/devices/virtual during unbind, clearing the gadget pointer. If the userspace tool queries on the surviving interface during this detached window, this leads to a NULL pointer dereference. Unable to handle kernel NULL pointer dereference Call trace: eth_get_drvinfo+0x50/0x90 ethtool_get_drvinfo+0x5c/0x1f0 __dev_ethtool+0xaec/0x1fe0 dev_ethtool+0x134/0x2e0 dev_ioctl+0x338/0x560 Add a NULL check for dev->gadget in eth_get_drvinfo(). When detached, skip copying the fw_version and bus_info strings, which is natively handled by ethtool_get_drvinfo for empty strings.
Impacted products
Vendor Product Version
Linux Linux Affected: 7c97366f5dac5255e60a317ffe3a5b18f3745547 , < f9f987472f4b8ab177be2b6492a59278ed969479 (git)
Affected: 36c41e9724c9a7a7cda37f5a4e9d94f25c8031c4 , < 7fce959e9be3bf63bb0fdf4b05f9cc42cb289fe2 (git)
Affected: 93f116c3393a22acab96ad1bef12b2572eb80ca4 , < 0326429e8ba99892e1d1e115dc8e88e1a3b64e24 (git)
Affected: e584cb58a2ea7ff4d3a4bc43d5ca512ed3ecb77d , < a36e5e800b9c93e3e1ffa42f34d38b36775dbcee (git)
Affected: 85acaba2f42b557499bab3608307f17bf13beb69 , < 7de4d46be40738c7e48e64b5cc0a34aa1e047b0a (git)
Affected: ec35c1969650e7cb6c8a91020e568ed46e3551b0 , < e002e92e88e12457373ed096b18716d97e7bbb20 (git)
Create a notification for this product.
Linux Linux Affected: 6.12.78 , < 6.12.81 (semver)
Affected: 6.18.19 , < 6.18.22 (semver)
Affected: 6.19.9 , < 6.19.12 (semver)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/u_ether.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "f9f987472f4b8ab177be2b6492a59278ed969479",
              "status": "affected",
              "version": "7c97366f5dac5255e60a317ffe3a5b18f3745547",
              "versionType": "git"
            },
            {
              "lessThan": "7fce959e9be3bf63bb0fdf4b05f9cc42cb289fe2",
              "status": "affected",
              "version": "36c41e9724c9a7a7cda37f5a4e9d94f25c8031c4",
              "versionType": "git"
            },
            {
              "lessThan": "0326429e8ba99892e1d1e115dc8e88e1a3b64e24",
              "status": "affected",
              "version": "93f116c3393a22acab96ad1bef12b2572eb80ca4",
              "versionType": "git"
            },
            {
              "lessThan": "a36e5e800b9c93e3e1ffa42f34d38b36775dbcee",
              "status": "affected",
              "version": "e584cb58a2ea7ff4d3a4bc43d5ca512ed3ecb77d",
              "versionType": "git"
            },
            {
              "lessThan": "7de4d46be40738c7e48e64b5cc0a34aa1e047b0a",
              "status": "affected",
              "version": "85acaba2f42b557499bab3608307f17bf13beb69",
              "versionType": "git"
            },
            {
              "lessThan": "e002e92e88e12457373ed096b18716d97e7bbb20",
              "status": "affected",
              "version": "ec35c1969650e7cb6c8a91020e568ed46e3551b0",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/usb/gadget/function/u_ether.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "6.12.81",
              "status": "affected",
              "version": "6.12.78",
              "versionType": "semver"
            },
            {
              "lessThan": "6.18.22",
              "status": "affected",
              "version": "6.18.19",
              "versionType": "semver"
            },
            {
              "lessThan": "6.19.12",
              "status": "affected",
              "version": "6.19.9",
              "versionType": "semver"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.81",
                  "versionStartIncluding": "6.12.78",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.22",
                  "versionStartIncluding": "6.18.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19.12",
                  "versionStartIncluding": "6.19.9",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo\n\nCommit ec35c1969650 (\"usb: gadget: f_ncm: Fix net_device lifecycle with\ndevice_move\") reparents the gadget device to /sys/devices/virtual during\nunbind, clearing the gadget pointer. If the userspace tool queries on\nthe surviving interface during this detached window, this leads to a\nNULL pointer dereference.\n\nUnable to handle kernel NULL pointer dereference\nCall trace:\n eth_get_drvinfo+0x50/0x90\n ethtool_get_drvinfo+0x5c/0x1f0\n __dev_ethtool+0xaec/0x1fe0\n dev_ethtool+0x134/0x2e0\n dev_ioctl+0x338/0x560\n\nAdd a NULL check for dev-\u003egadget in eth_get_drvinfo(). When detached,\nskip copying the fw_version and bus_info strings, which is natively\nhandled by ethtool_get_drvinfo for empty strings."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-06-19T11:58:05.053Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/f9f987472f4b8ab177be2b6492a59278ed969479"
        },
        {
          "url": "https://git.kernel.org/stable/c/7fce959e9be3bf63bb0fdf4b05f9cc42cb289fe2"
        },
        {
          "url": "https://git.kernel.org/stable/c/0326429e8ba99892e1d1e115dc8e88e1a3b64e24"
        },
        {
          "url": "https://git.kernel.org/stable/c/a36e5e800b9c93e3e1ffa42f34d38b36775dbcee"
        },
        {
          "url": "https://git.kernel.org/stable/c/7de4d46be40738c7e48e64b5cc0a34aa1e047b0a"
        },
        {
          "url": "https://git.kernel.org/stable/c/e002e92e88e12457373ed096b18716d97e7bbb20"
        }
      ],
      "title": "usb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-31727",
    "datePublished": "2026-05-01T14:14:27.552Z",
    "dateReserved": "2026-03-09T15:48:24.134Z",
    "dateUpdated": "2026-06-19T11:58:05.053Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-31727",
      "date": "2026-11-16",
      "epss": "0.00123",
      "percentile": "0.02087"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/usb/gadget/function/u_ether.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "f9f987472f4b8ab177be2b6492a59278ed969479",
                    "status": "affected",
                    "version": "7c97366f5dac5255e60a317ffe3a5b18f3745547",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7fce959e9be3bf63bb0fdf4b05f9cc42cb289fe2",
                    "status": "affected",
                    "version": "36c41e9724c9a7a7cda37f5a4e9d94f25c8031c4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0326429e8ba99892e1d1e115dc8e88e1a3b64e24",
                    "status": "affected",
                    "version": "93f116c3393a22acab96ad1bef12b2572eb80ca4",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a36e5e800b9c93e3e1ffa42f34d38b36775dbcee",
                    "status": "affected",
                    "version": "e584cb58a2ea7ff4d3a4bc43d5ca512ed3ecb77d",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "7de4d46be40738c7e48e64b5cc0a34aa1e047b0a",
                    "status": "affected",
                    "version": "85acaba2f42b557499bab3608307f17bf13beb69",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e002e92e88e12457373ed096b18716d97e7bbb20",
                    "status": "affected",
                    "version": "ec35c1969650e7cb6c8a91020e568ed46e3551b0",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/usb/gadget/function/u_ether.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "6.12.81",
                    "status": "affected",
                    "version": "6.12.78",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.18.22",
                    "status": "affected",
                    "version": "6.18.19",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.19.12",
                    "status": "affected",
                    "version": "6.19.9",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "3567D859-58AE-4093-AF8D-4FAF8C4F6486",
                    "versionEndExcluding": "6.12.81",
                    "versionStartIncluding": "6.12.78",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "FFB8FEEE-92ED-46DD-897B-15F8534FE743",
                    "versionEndExcluding": "6.18.22",
                    "versionStartIncluding": "6.18.19",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "F44F6C4F-96C5-4F3A-8DA1-9B8F6AB14C51",
                    "versionEndExcluding": "6.19.12",
                    "versionStartIncluding": "6.19.9",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*",
                    "matchCriteriaId": "F253B622-8837-4245-BCE5-A7BF8FC76A16",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*",
                    "matchCriteriaId": "4AE85AD8-4641-4E7C-A2F4-305E2CD9EE64",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*",
                    "matchCriteriaId": "F666C8D8-6538-46D4-B318-87610DE64C34",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*",
                    "matchCriteriaId": "02259FDA-961B-47BC-AE7F-93D7EC6E90C2",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*",
                    "matchCriteriaId": "58A9FEFF-C040-420D-8F0A-BFDAAA1DF258",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*",
                    "matchCriteriaId": "1D2315C0-D46F-4F85-9754-F9E5E11374A6",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo\n\nCommit ec35c1969650 (\"usb: gadget: f_ncm: Fix net_device lifecycle with\ndevice_move\") reparents the gadget device to /sys/devices/virtual during\nunbind, clearing the gadget pointer. If the userspace tool queries on\nthe surviving interface during this detached window, this leads to a\nNULL pointer dereference.\n\nUnable to handle kernel NULL pointer dereference\nCall trace:\n eth_get_drvinfo+0x50/0x90\n ethtool_get_drvinfo+0x5c/0x1f0\n __dev_ethtool+0xaec/0x1fe0\n dev_ethtool+0x134/0x2e0\n dev_ioctl+0x338/0x560\n\nAdd a NULL check for dev-\u003egadget in eth_get_drvinfo(). When detached,\nskip copying the fw_version and bus_info strings, which is natively\nhandled by ethtool_get_drvinfo for empty strings."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: gadget: u_ether: Corrige desreferencia de puntero NULL en eth_get_drvinfo\n\nEl commit ec35c1969650 (\u2019usb: gadget: f_ncm: Corrige el ciclo de vida de net_device con device_move\u2019) reparenta el dispositivo gadget a /sys/devices/virtual durante la desvinculaci\u00f3n, borrando el puntero gadget. Si la herramienta de espacio de usuario consulta en la interfaz superviviente durante esta ventana de desconexi\u00f3n, esto lleva a una desreferencia de puntero NULL.\n\nNo se puede manejar la desreferencia de puntero NULL del kernel\nRastreo de llamadas:\n eth_get_drvinfo+0x50/0x90\n ethtool_get_drvinfo+0x5c/0x1f0\n __dev_ethtool+0xaec/0x 1fe0\n dev_ethtool+0x134/0x2e0\n dev_ioctl+0x338/0x560\n\nA\u00f1adir una comprobaci\u00f3n de NULL para dev  -\u003e  gadget en eth_get_drvinfo(). Cuando est\u00e1 desconectado, omitir la copia de las cadenas fw_version y bus_info, lo cual es manejado de forma nativa por ethtool_get_drvinfo para cadenas vac\u00edas."
          }
        ],
        "id": "CVE-2026-31727",
        "lastModified": "2026-11-11T21:10:00.200",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 5.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 3.6,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2026-05-01T15:16:35.210",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/0326429e8ba99892e1d1e115dc8e88e1a3b64e24"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/7de4d46be40738c7e48e64b5cc0a34aa1e047b0a"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/7fce959e9be3bf63bb0fdf4b05f9cc42cb289fe2"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/a36e5e800b9c93e3e1ffa42f34d38b36775dbcee"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/e002e92e88e12457373ed096b18716d97e7bbb20"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/f9f987472f4b8ab177be2b6492a59278ed969479"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Modified",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-476"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-07T04:37:34+00:00",
      "cve": "CVE-2026-31727",
      "id": "CVE-2026-31727",
      "initial_release_date": "2026-05-01T00:00:00+00:00",
      "product_status:known_affected": "1",
      "product_status:known_not_affected": "199",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: usb: gadget: u_ether: Fix NULL pointer deref in eth_get_drvinfo",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31727.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-11-07T02:25:28Z",
      "cve": "CVE-2026-31727",
      "id": "CVE-2026-31727",
      "initial_release_date": "2026-05-07T02:21:38Z",
      "product_status:known_affected": "396",
      "product_status:known_not_affected": "322",
      "product_status:recommended": "308",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2026-31727",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-31727.json",
      "version": "11"
    }
  }
}



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…