{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31722","id":"CVE-2026-31722","title":"usb: gadget: f_rndis: Fix net_device lifecycle with device_move","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_rndis: 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 symlink","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: f_rndis: 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 ->\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 borrowed_net flag is used to indicate whether the network device is\nshared and pre-registered during the legacy driver's bind phase.","published":"2026-05-01T14:14:24.156Z","updated":"2026-11-13T02:30:32.591016516Z","reserved":"2026-03-09T15:48:24.134Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"f374388891778c2f58facc0f61f2610a206a1876","status":"affected","versionType":"git"},{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"9701a98f4459b52558f683b6b12a6feb6f17b255","status":"affected","versionType":"git"},{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"1ef251aa63972fe6c0f107f5abd139b7d0f7987a","status":"affected","versionType":"git"},{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"18ada801899f2b13ef0ceff42427ad980a41e619","status":"affected","versionType":"git"},{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"6045ea5ca6e3fa13f8a9fafb1c535c86e124c14d","status":"affected","versionType":"git"},{"version":"f466c6353819326873fa48a02c6f2d7c903240d6","lessThan":"e367599529dc42578545a7f85fde517b35b3cda7","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.11","status":"affected"},{"version":"0","lessThan":"3.11","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.81","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.22","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.12","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f374388891778c2f58facc0f61f2610a206a1876","tags":["web"]},{"url":"https://git.kernel.org/stable/c/9701a98f4459b52558f683b6b12a6feb6f17b255","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1ef251aa63972fe6c0f107f5abd139b7d0f7987a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/18ada801899f2b13ef0ceff42427ad980a41e619","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6045ea5ca6e3fa13f8a9fafb1c535c86e124c14d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e367599529dc42578545a7f85fde517b35b3cda7","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31722.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31722","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00156,"epssPercentile":0.0479,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31722","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31722","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31722","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31722","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}