CVE-2026-31723 (GCVE-0-2026-31723)
Vulnerability from cvelistv5 – Published: 2026-05-01 14:14 – Updated: 2026-10-30 12:24
VLAI
EPSS
VEX
Title
usb: gadget: f_subset: Fix net_device lifecycle with device_move
Summary
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: f_subset: Fix net_device lifecycle with device_move
The net_device is allocated during function instance creation and
registered during the bind phase with the gadget device as its sysfs
parent. When the function unbinds, the parent device is destroyed, but
the net_device survives, resulting in dangling sysfs symlinks:
console:/ # ls -l /sys/class/net/usb0
lrwxrwxrwx ... /sys/class/net/usb0 ->
/sys/devices/platform/.../gadget.0/net/usb0
console:/ # ls -l /sys/devices/platform/.../gadget.0/net/usb0
ls: .../gadget.0/net/usb0: No such file or directory
Use device_move() to reparent the net_device between the gadget device
tree and /sys/devices/virtual across bind and unbind cycles. During the
final unbind, calling device_move(NULL) moves the net_device to the
virtual device tree before the gadget device is destroyed. On rebinding,
device_move() reparents the device back under the new gadget, ensuring
proper sysfs topology and power management ordering.
To maintain compatibility with legacy composite drivers (e.g., multi.c),
the bound flag is used to indicate whether the network device is shared
and pre-registered during the legacy driver's bind phase.
Severity
5.5 (Medium)
Assigner
References
6 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
8cedba7c73af1369599b1111639cfeb66fe13aaa , < c26916e8413c8fc44834fd9df4899312fd6cf880
(git)
Affected: 8cedba7c73af1369599b1111639cfeb66fe13aaa , < edb08047051883591517feb5a51bf2bfd2b769fb (git) Affected: 8cedba7c73af1369599b1111639cfeb66fe13aaa , < 70707ce668494c4d35fe070dfbc7cc541b293107 (git) Affected: 8cedba7c73af1369599b1111639cfeb66fe13aaa , < 9cbc4f109bb216623894d8819fb930210ed34b21 (git) Affected: 8cedba7c73af1369599b1111639cfeb66fe13aaa , < fde29916e4cc736c4ca6c78f331e12b2c73ccafd (git) Affected: 8cedba7c73af1369599b1111639cfeb66fe13aaa , < 06524cd1c9011bee141a87e43ab878641ed3652b (git) |
|
| Linux | Linux |
Affected:
3.11
Unaffected: 0 , < 3.11 (semver) Unaffected: 6.1.191 , ≤ 6.1.* (semver) Unaffected: 6.6.160 , ≤ 6.6.* (semver) Unaffected: 6.12.81 , ≤ 6.12.* (semver) Unaffected: 6.18.22 , ≤ 6.18.* (semver) Unaffected: 6.19.12 , ≤ 6.19.* (semver) Unaffected: 7.0 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_subset.c",
"drivers/usb/gadget/function/u_gether.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "c26916e8413c8fc44834fd9df4899312fd6cf880",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "edb08047051883591517feb5a51bf2bfd2b769fb",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "70707ce668494c4d35fe070dfbc7cc541b293107",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "9cbc4f109bb216623894d8819fb930210ed34b21",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "fde29916e4cc736c4ca6c78f331e12b2c73ccafd",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "06524cd1c9011bee141a87e43ab878641ed3652b",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_subset.c",
"drivers/usb/gadget/function/u_gether.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.11"
},
{
"lessThan": "3.11",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.191",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.81",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.22",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.19.*",
"status": "unaffected",
"version": "6.19.12",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.0",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.191",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.160",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.81",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.22",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.19.12",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.0",
"versionStartIncluding": "3.11",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_subset: Fix net_device lifecycle with device_move\n\nThe net_device is allocated during function instance creation and\nregistered during the bind phase with the gadget device as its sysfs\nparent. When the function unbinds, the parent device is destroyed, but\nthe net_device survives, resulting in dangling sysfs symlinks:\n\n console:/ # ls -l /sys/class/net/usb0\n lrwxrwxrwx ... /sys/class/net/usb0 -\u003e\n /sys/devices/platform/.../gadget.0/net/usb0\n console:/ # ls -l /sys/devices/platform/.../gadget.0/net/usb0\n ls: .../gadget.0/net/usb0: No such file or directory\n\nUse device_move() to reparent the net_device between the gadget device\ntree and /sys/devices/virtual across bind and unbind cycles. During the\nfinal unbind, calling device_move(NULL) moves the net_device to the\nvirtual device tree before the gadget device is destroyed. On rebinding,\ndevice_move() reparents the device back under the new gadget, ensuring\nproper sysfs topology and power management ordering.\n\nTo maintain compatibility with legacy composite drivers (e.g., multi.c),\nthe bound flag is used to indicate whether the network device is shared\nand pre-registered during the legacy driver\u0027s bind phase."
}
],
"providerMetadata": {
"dateUpdated": "2026-10-30T12:24:37.385Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/c26916e8413c8fc44834fd9df4899312fd6cf880"
},
{
"url": "https://git.kernel.org/stable/c/edb08047051883591517feb5a51bf2bfd2b769fb"
},
{
"url": "https://git.kernel.org/stable/c/70707ce668494c4d35fe070dfbc7cc541b293107"
},
{
"url": "https://git.kernel.org/stable/c/9cbc4f109bb216623894d8819fb930210ed34b21"
},
{
"url": "https://git.kernel.org/stable/c/fde29916e4cc736c4ca6c78f331e12b2c73ccafd"
},
{
"url": "https://git.kernel.org/stable/c/06524cd1c9011bee141a87e43ab878641ed3652b"
}
],
"title": "usb: gadget: f_subset: Fix net_device lifecycle with device_move",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-31723",
"datePublished": "2026-05-01T14:14:24.876Z",
"dateReserved": "2026-03-09T15:48:24.134Z",
"dateUpdated": "2026-10-30T12:24:37.385Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-31723",
"date": "2026-11-16",
"epss": "0.00156",
"percentile": "0.04751"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_subset.c",
"drivers/usb/gadget/function/u_gether.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "c26916e8413c8fc44834fd9df4899312fd6cf880",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "edb08047051883591517feb5a51bf2bfd2b769fb",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "70707ce668494c4d35fe070dfbc7cc541b293107",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "9cbc4f109bb216623894d8819fb930210ed34b21",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "fde29916e4cc736c4ca6c78f331e12b2c73ccafd",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
},
{
"lessThan": "06524cd1c9011bee141a87e43ab878641ed3652b",
"status": "affected",
"version": "8cedba7c73af1369599b1111639cfeb66fe13aaa",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/function/f_subset.c",
"drivers/usb/gadget/function/u_gether.h"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "3.11"
},
{
"lessThan": "3.11",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"version": "6.1.191",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"version": "6.6.160",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.12.*",
"status": "unaffected",
"version": "6.12.81",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.22",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.19.*",
"status": "unaffected",
"version": "6.19.12",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.0",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"configurations": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "2DDEB484-A8B8-4ED2-B54C-C92F595BA13F",
"versionEndExcluding": "6.12.81",
"versionStartIncluding": "3.11",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "C9DF8BCE-36D3-475D-9D21-19E4F02F9029",
"versionEndExcluding": "6.18.22",
"versionStartIncluding": "6.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"matchCriteriaId": "0A2B9540-02D5-41B4-B16A-82AF66FD4F36",
"versionEndExcluding": "6.19.12",
"versionStartIncluding": "6.19",
"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: f_subset: Fix net_device lifecycle with device_move\n\nThe net_device is allocated during function instance creation and\nregistered during the bind phase with the gadget device as its sysfs\nparent. When the function unbinds, the parent device is destroyed, but\nthe net_device survives, resulting in dangling sysfs symlinks:\n\n console:/ # ls -l /sys/class/net/usb0\n lrwxrwxrwx ... /sys/class/net/usb0 -\u003e\n /sys/devices/platform/.../gadget.0/net/usb0\n console:/ # ls -l /sys/devices/platform/.../gadget.0/net/usb0\n ls: .../gadget.0/net/usb0: No such file or directory\n\nUse device_move() to reparent the net_device between the gadget device\ntree and /sys/devices/virtual across bind and unbind cycles. During the\nfinal unbind, calling device_move(NULL) moves the net_device to the\nvirtual device tree before the gadget device is destroyed. On rebinding,\ndevice_move() reparents the device back under the new gadget, ensuring\nproper sysfs topology and power management ordering.\n\nTo maintain compatibility with legacy composite drivers (e.g., multi.c),\nthe bound flag is used to indicate whether the network device is shared\nand pre-registered during the legacy driver\u0027s bind phase."
},
{
"lang": "es",
"value": "En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nusb: gadget: f_subset: Solucionar el ciclo de vida de net_device con device_move\n\nEl net_device se asigna durante la creaci\u00f3n de la instancia de funci\u00f3n y se registra durante la fase de enlace con el dispositivo gadget como su padre sysfs. Cuando la funci\u00f3n se desenlaza, el dispositivo padre es destruido, pero el net_device sobrevive, lo que resulta en enlaces simb\u00f3licos sysfs colgantes:\n\n console:/ # ls -l /sys/class/net/usb0\n lrwxrwxrwx ... /sys/class/net/usb0 -\u003e \n /sys/devices/platform/... / gadget.0/net/usb0\n console:/ # ls -l /sys/devices/platform/... / gadget.0/net/usb0\n ls: ... / gadget.0/net/usb0: No existe el archivo o directorio\n\nUsar device_move() para reparentar el net_device entre el \u00e1rbol de dispositivos gadget y /sys/devices/virtual a trav\u00e9s de los ciclos de enlace y desenlace. Durante el desenlace final, llamar a device_move(NULL) mueve el net_device al \u00e1rbol de dispositivos virtuales antes de que el dispositivo gadget sea destruido. Al reenlazar, device_move() reparenta el dispositivo de nuevo bajo el nuevo gadget, asegurando una topolog\u00eda sysfs adecuada y un ordenamiento de la gesti\u00f3n de energ\u00eda.\n\nPara mantener la compatibilidad con controladores compuestos heredados (p. ej., multi.c), se utiliza la bandera \u2019bound\u2019 para indicar si el dispositivo de red es compartido y pre-registrado durante la fase de enlace del controlador heredado."
}
],
"id": "CVE-2026-31723",
"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:34.727",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/06524cd1c9011bee141a87e43ab878641ed3652b"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/70707ce668494c4d35fe070dfbc7cc541b293107"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/9cbc4f109bb216623894d8819fb930210ed34b21"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c26916e8413c8fc44834fd9df4899312fd6cf880"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/edb08047051883591517feb5a51bf2bfd2b769fb"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"tags": [
"Patch"
],
"url": "https://git.kernel.org/stable/c/fde29916e4cc736c4ca6c78f331e12b2c73ccafd"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Modified",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "NVD-CWE-noinfo"
}
],
"source": "nvd@nist.gov",
"type": "Primary"
}
]
}
},
"redhat_vex": {
"aggregate_severity": "None",
"current_release_date": "2026-11-07T04:37:32+00:00",
"cve": "CVE-2026-31723",
"id": "CVE-2026-31723",
"initial_release_date": "2026-05-01T00:00:00+00:00",
"product_status:known_not_affected": "200",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: usb: gadget: f_subset: Fix net_device lifecycle with device_move",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31723.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-10-21T23:52:50Z",
"cve": "CVE-2026-31723",
"id": "CVE-2026-31723",
"initial_release_date": "2026-05-07T02:21:40Z",
"product_status:known_affected": "382",
"product_status:known_not_affected": "4",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-31723",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-31723.json",
"version": "5"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
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…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
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…