CVE-2026-89738 (GCVE-0-2026-89738)
Vulnerability from cvelistv5 – Published: 2026-09-11 19:46 – Updated: 2026-10-30 12:32
VLAI
EPSS
VEX
Title
usb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed
Summary
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed
In polled-VBUS mode (board.vbus_pin && board.vbus_polled), probe arms a
self-restarting cycle: at91_vbus_timer() schedules vbus_timer_work, and
at91_vbus_timer_work() calls at91_vbus_update() and re-arms the timer via
mod_timer(). Both recover the same udc through container_of and dereference
it on every iteration.
Neither teardown path cancels this cycle. udc is devm-allocated, so it is
freed after at91udc_remove() returns, and is likewise freed when probe
fails and devres runs. A timer callback or work item that is pending or
running at either point dereferences the freed udc.
Add at91_udc_shutdown_vbus_timer() and call it from at91udc_remove() and
from the usb_add_gadget_udc() failure path in probe; the remaining probe
error paths fail before the timer is armed. timer_shutdown_sync() waits
for a running callback and clears timer->function, which makes the work
handler's mod_timer() a permanent no-op; cancel_work_sync() then drains
any pending or running work whose re-arm attempt now does nothing. The
timer must be shut down first, since cancelling the work alone would let
the timer re-queue it. The guard mirrors probe: in IRQ mode the timer and
work_struct are never initialized.
This does not require a fault; a normal driver unbind can interleave with
an already queued work item.
This issue was found by an in-house static analysis tool.
Severity
7.8 (High)
Assigner
References
7 references
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < 2440ce54b8c4c8aa6963c181eb56164a466fbe1c
(git)
Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < 1674e34fe61ad3f5585dc833ba6bb6522912e6a5 (git) Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < 723d73b245843d4fff4c3f42e857c78c2b2d414e (git) Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < a2a602cb1e28d76a5398cec3fa21b0110385f501 (git) Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < 51a311eb97e91ce1aed3005cb71ccb2e30f8cce8 (git) Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < 557ef547d49ff5e6026a4d39bdd3113bd81d7688 (git) Affected: 4037242c4f5ff77afe61bf07ca1e8a99490219e5 , < c27d13ce4bab80fbdf6523928071b6c24b37606c (git) |
|
| Linux | Linux |
Affected:
2.6.36
Unaffected: 0 , < 2.6.36 (semver) Unaffected: 5.15.224 , ≤ 5.15.* (semver) Unaffected: 6.1.191 , ≤ 6.1.* (semver) Unaffected: 6.6.160 , ≤ 6.6.* (semver) Unaffected: 6.12.109 , ≤ 6.12.* (semver) Unaffected: 6.18.50 , ≤ 6.18.* (semver) Unaffected: 7.2.4 , ≤ 7.2.* (semver) Unaffected: 7.3 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/udc/at91_udc.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "2440ce54b8c4c8aa6963c181eb56164a466fbe1c",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "1674e34fe61ad3f5585dc833ba6bb6522912e6a5",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "723d73b245843d4fff4c3f42e857c78c2b2d414e",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "a2a602cb1e28d76a5398cec3fa21b0110385f501",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "51a311eb97e91ce1aed3005cb71ccb2e30f8cce8",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "557ef547d49ff5e6026a4d39bdd3113bd81d7688",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "c27d13ce4bab80fbdf6523928071b6c24b37606c",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/udc/at91_udc.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.36"
},
{
"lessThan": "2.6.36",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.224",
"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.109",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.15.224",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.1.191",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.6.160",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.12.109",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "6.18.50",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.2.4",
"versionStartIncluding": "2.6.36",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3",
"versionStartIncluding": "2.6.36",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed\n\nIn polled-VBUS mode (board.vbus_pin \u0026\u0026 board.vbus_polled), probe arms a\nself-restarting cycle: at91_vbus_timer() schedules vbus_timer_work, and\nat91_vbus_timer_work() calls at91_vbus_update() and re-arms the timer via\nmod_timer(). Both recover the same udc through container_of and dereference\nit on every iteration.\n\nNeither teardown path cancels this cycle. udc is devm-allocated, so it is\nfreed after at91udc_remove() returns, and is likewise freed when probe\nfails and devres runs. A timer callback or work item that is pending or\nrunning at either point dereferences the freed udc.\n\nAdd at91_udc_shutdown_vbus_timer() and call it from at91udc_remove() and\nfrom the usb_add_gadget_udc() failure path in probe; the remaining probe\nerror paths fail before the timer is armed. timer_shutdown_sync() waits\nfor a running callback and clears timer-\u003efunction, which makes the work\nhandler\u0027s mod_timer() a permanent no-op; cancel_work_sync() then drains\nany pending or running work whose re-arm attempt now does nothing. The\ntimer must be shut down first, since cancelling the work alone would let\nthe timer re-queue it. The guard mirrors probe: in IRQ mode the timer and\nwork_struct are never initialized.\n\nThis does not require a fault; a normal driver unbind can interleave with\nan already queued work item.\n\nThis issue was found by an in-house static analysis tool."
}
],
"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 - The use-after-free is reached on local AT91 UDC platform-driver teardown (sysfs unbind, rmmod, or probe-error unwind after the polled-VBUS timer is armed), not by parsing USB host packets. That matches other USB gadget/UDC teardown UAFs scored Local and is higher severity than Physical.\nAC:L - Once polled-VBUS mode is active, unbind or the usb_add_gadget_udc() failure path frees the devm-allocated udc while the self-restarting timer/work still hold it; the next timer tick or already-queued work then dereferences the freed object with no race the attacker cannot drive.\nPR:L - Highest reasonable exposure is a local account that manages the USB gadget/UDC on AT91 industrial, IoT, and embedded controllers, where platform unbind or gadget HAL access is often delegated beyond init-namespace root. Uncertain Low vs High, so Low per the overestimate rule.\nUI:N - The attacker initiates driver unbind, module unload, or a failing re-probe themselves; no separate victim action such as plugging a USB cable, mounting a filesystem, or opening a device node is required.\nS:U - The use-after-free corrupts the host kernel\u0027s struct at91_udc heap object within the same OS security authority and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - at91_vbus_timer() and at91_vbus_timer_work() recover the freed udc via container_of and read vbus_pin, gadget state, and related fields; reclaiming that slab yields a classic UAF read/disclosure primitive.\nI:H - The dangling work calls at91_vbus_session()/pullup(), which write MMIO through udp_baseaddr and invoke caps-\u003epullup and possibly driver-\u003edisconnect on the freed object, enabling heap corruption and control-flow hijack.\nA:H - Dereferencing the freed udc from timer or workqueue context causes a kernel oops or panic even without a full exploit, so availability impact is High."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-10-30T12:32:52.839Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/2440ce54b8c4c8aa6963c181eb56164a466fbe1c"
},
{
"url": "https://git.kernel.org/stable/c/1674e34fe61ad3f5585dc833ba6bb6522912e6a5"
},
{
"url": "https://git.kernel.org/stable/c/723d73b245843d4fff4c3f42e857c78c2b2d414e"
},
{
"url": "https://git.kernel.org/stable/c/a2a602cb1e28d76a5398cec3fa21b0110385f501"
},
{
"url": "https://git.kernel.org/stable/c/51a311eb97e91ce1aed3005cb71ccb2e30f8cce8"
},
{
"url": "https://git.kernel.org/stable/c/557ef547d49ff5e6026a4d39bdd3113bd81d7688"
},
{
"url": "https://git.kernel.org/stable/c/c27d13ce4bab80fbdf6523928071b6c24b37606c"
}
],
"title": "usb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-89738",
"datePublished": "2026-09-11T19:46:45.898Z",
"dateReserved": "2026-09-11T19:38:34.761Z",
"dateUpdated": "2026-10-30T12:32:52.839Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-89738",
"date": "2026-11-17",
"epss": "0.00192",
"percentile": "0.08971"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/udc/at91_udc.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "2440ce54b8c4c8aa6963c181eb56164a466fbe1c",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "1674e34fe61ad3f5585dc833ba6bb6522912e6a5",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "723d73b245843d4fff4c3f42e857c78c2b2d414e",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "a2a602cb1e28d76a5398cec3fa21b0110385f501",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "51a311eb97e91ce1aed3005cb71ccb2e30f8cce8",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "557ef547d49ff5e6026a4d39bdd3113bd81d7688",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
},
{
"lessThan": "c27d13ce4bab80fbdf6523928071b6c24b37606c",
"status": "affected",
"version": "4037242c4f5ff77afe61bf07ca1e8a99490219e5",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/usb/gadget/udc/at91_udc.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.36"
},
{
"lessThan": "2.6.36",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.15.*",
"status": "unaffected",
"version": "5.15.224",
"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.109",
"versionType": "semver"
},
{
"lessThanOrEqual": "6.18.*",
"status": "unaffected",
"version": "6.18.50",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.2.*",
"status": "unaffected",
"version": "7.2.4",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.3",
"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\nusb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed\n\nIn polled-VBUS mode (board.vbus_pin \u0026\u0026 board.vbus_polled), probe arms a\nself-restarting cycle: at91_vbus_timer() schedules vbus_timer_work, and\nat91_vbus_timer_work() calls at91_vbus_update() and re-arms the timer via\nmod_timer(). Both recover the same udc through container_of and dereference\nit on every iteration.\n\nNeither teardown path cancels this cycle. udc is devm-allocated, so it is\nfreed after at91udc_remove() returns, and is likewise freed when probe\nfails and devres runs. A timer callback or work item that is pending or\nrunning at either point dereferences the freed udc.\n\nAdd at91_udc_shutdown_vbus_timer() and call it from at91udc_remove() and\nfrom the usb_add_gadget_udc() failure path in probe; the remaining probe\nerror paths fail before the timer is armed. timer_shutdown_sync() waits\nfor a running callback and clears timer-\u003efunction, which makes the work\nhandler\u0027s mod_timer() a permanent no-op; cancel_work_sync() then drains\nany pending or running work whose re-arm attempt now does nothing. The\ntimer must be shut down first, since cancelling the work alone would let\nthe timer re-queue it. The guard mirrors probe: in IRQ mode the timer and\nwork_struct are never initialized.\n\nThis does not require a fault; a normal driver unbind can interleave with\nan already queued work item.\n\nThis issue was found by an in-house static analysis tool."
}
],
"id": "CVE-2026-89738",
"lastModified": "2026-10-30T13:20:27.713",
"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-09-11T20:20:04.357",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/1674e34fe61ad3f5585dc833ba6bb6522912e6a5"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2440ce54b8c4c8aa6963c181eb56164a466fbe1c"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/51a311eb97e91ce1aed3005cb71ccb2e30f8cce8"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/557ef547d49ff5e6026a4d39bdd3113bd81d7688"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/723d73b245843d4fff4c3f42e857c78c2b2d414e"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/a2a602cb1e28d76a5398cec3fa21b0110385f501"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/c27d13ce4bab80fbdf6523928071b6c24b37606c"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Moderate",
"current_release_date": "2026-11-06T01:22:34+00:00",
"cve": "CVE-2026-89738",
"id": "CVE-2026-89738",
"initial_release_date": "2026-09-11T00:00:00+00:00",
"product_status:known_affected": "1",
"product_status:known_not_affected": "202",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: usb: gadget: at91_udc: drain polled-VBUS timer/work before udc is freed",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89738.json",
"version": "3"
},
"suse_vex": {
"aggregate_severity": "moderate",
"current_release_date": "2026-11-14T01:34:54Z",
"cve": "CVE-2026-89738",
"id": "CVE-2026-89738",
"initial_release_date": "2026-09-12T16:22:31Z",
"product_status:known_affected": "326",
"product_status:known_not_affected": "33",
"product_status:recommended": "237",
"source": "SUSE CSAF VEX",
"status": "interim",
"title": "SUSE CVE CVE-2026-89738",
"url": "https://ftp.suse.com/pub/projects/security/csaf-vex/2026/cve-2026-89738.json",
"version": "9"
}
}
}
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…