CVE-2026-63894

HIGHPre-NVD 7.87.8
EchelonGraph scoreMEDIUM confidence

Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-07-19. the CNA's CVSS baseline 7.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: cna:linux, epss, ghsa
Trending — 4 sources updated this week
7.8EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0%CVSS: 7.8Exploit: None knownExposed: 0

A fix is available — apply it.

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: f_fs: serialize DMABUF cancel against request completion

ffs_epfile_dmabuf_io_complete() calls usb_ep_free_request() on the completed request but leaves priv->req, the back-pointer that ffs_dmabuf_transfer() set on submission, pointing at the freed memory. A later FUNCTIONFS_DMABUF_DETACH ioctl or ffs_epfile_release() on the close path still sees priv->req non-NULL under ffs->eps_lock:

if (priv->ep && priv->req) usb_ep_dequeue(priv->ep, priv->req);

so usb_ep_dequeue() is called on a freed usb_request.

On dummy_hcd the dequeue path only walks a live queue and pointer-compares, so the freed pointer reads without faulting and KASAN requires an explicit check at the FunctionFS call site to surface the use-after-free. On SG-capable in-tree UDCs the dequeue path dereferences the supplied request immediately:

* chipidea's ep_dequeue() does container_of(req, struct ci_hw_req, req) and reads hwreq->req.status before acquiring its own lock. * cdnsp's cdnsp_gadget_ep_dequeue() reads request->status first.

The narrower option of clearing priv->req via cmpxchg() in the completion does not close the race: the completion runs without eps_lock, so a cancel path holding eps_lock can still observe priv->req non-NULL, race a concurrent completion that clears and frees, and pass the freed pointer to usb_ep_dequeue(). A slightly longer fix that moves the free into the cleanup work is needed.

Same class of lifetime race as the recent usbip-vudc timer fix [1].

Take eps_lock in the sole place that mutates priv->req from the callback direction by moving usb_ep_free_request() out of the completion into ffs_dmabuf_cleanup(), the existing work handler scheduled by ffs_dmabuf_signal_done() on ffs->io_completion_wq. Clear priv->req there under eps_lock before freeing, and only clear if priv->req still names our request (a subsequent ffs_dmabuf_transfer() on the same attachment may have queued a new one).

This keeps the existing dummy_hcd sync-dequeue invariant: the completion callback is still invoked by the UDC without eps_lock held (dummy_hcd drops its own lock before calling the callback), and the callback now takes no f_fs lock at all. Serialization against the cancel path happens in cleanup, which runs from the workqueue with no f_fs lock held on entry.

The priv ref count protects the containing ffs_dmabuf_priv: ffs_dmabuf_transfer() takes a ref via ffs_dmabuf_get(), cleanup drops it via ffs_dmabuf_put(), so priv stays live for the cleanup even after the cancel path's list_del + ffs_dmabuf_put.

The ffs_dmabuf_transfer() error path no longer frees usb_req inline: fence->req and fence->ep are set before usb_ep_queue(), so ffs_dmabuf_cleanup() (scheduled by the error-path ffs_dmabuf_signal_done()) owns the free regardless of whether the queue succeeded.

Reproduced under KASAN on both detach and close paths against dummy_hcd with an observability hook (kasan_check_byte(priv->req) immediately before usb_ep_dequeue) at the two FunctionFS cancel sites to surface the stale-pointer access; the hook is not part of this patch. The KASAN allocator / free stacks in the captured splats identify the same request: alloc in dummy_alloc_request, free in dummy_timer, fault reached from ffs_epfile_release (close) and from the FUNCTIONFS_DMABUF_DETACH ioctl (detach). With the patch applied, both paths are silent under the same hook.

The bug is reached from the FunctionFS device node, which in real deployments is owned by the privileged gadget daemon (adbd, UMS, composite gadget services, etc.); it is not reachable from unprivileged userspace or from a USB host on the cable. FunctionFS mounts default to GLOBAL_ROOT_UID, but the filesystem supports uid=, gid=, and fmode= delegation to a non-root gadget daemon, so on real deployments the attacker may be a less-privileged service rather than root.

CVSS v3
7.8
EG Score
7.8(medium)
EG Risk
40(Track)
EG Risk 40/100SSVC: Track

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed
Severity78% × 45%
Exploitation0% × 40%
Automatability30% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
6%
KEV
Not listed

Published

July 19, 2026

Last Modified

August 5, 2026

Advisory Details (4)

Auto-updated Jul 21, 2026
No patch confirmed yet.
generic

usb: gadget: f_fs: serialize DMABUF cancel against request completion - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/c872d8a065b3b499ce4c3ad168b5d34b68524f66
generic

usb: gadget: f_fs: serialize DMABUF cancel against request completion - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/c7d421123b98d5e9c1c84bd9957aba36f1cbb4ca
generic

usb: gadget: f_fs: serialize DMABUF cancel against request completion - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/552dae28dbeb5f7c4fafcda43962dc46569f58a0
generic

usb: gadget: f_fs: serialize DMABUF cancel against request completion - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/2796646f6d892c1eb6818c7ca41fdfa12568e8d1

Vendor Advisories for CVE-2026-63894(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Patch Availability(5)

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(2 across 2 ecosystems)
Debian:13(1)
PackageVulnerable rangeFixed inDependents
linux6.12.38-1 ... 6.12.94-1~bpo12+1 (27 versions)6.12.94-1
Debian:14(1)
PackageVulnerable rangeFixed inDependents
linux6.12.100-1 ... 7.0.9-1~bpo13+1 (138 versions)7.0.12-1

All Vendor Advisories

(5)

Data Freshness Timeline

(refreshed 32× in last 7d / 163× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 213 total refreshes for this CVE.

  1. 2026-08-30 02:58 UTCEG score recompute
  2. 2026-08-30 02:58 UTCVendor advisory
  3. 2026-08-30 02:58 UTCGHSA enrichment
  4. 2026-08-30 01:22 UTCEPSS rescore
  5. 2026-08-28 21:42 UTCEPSS rescore
  6. 2026-08-27 23:50 UTCEG score recompute
  7. 2026-08-27 23:50 UTCVendor advisory
  8. 2026-08-27 23:50 UTCGHSA enrichment
  9. 2026-08-27 14:25 UTCEPSS rescore
  10. 2026-08-27 11:55 UTCVendor advisory
  11. 2026-08-27 11:55 UTCGHSA enrichment
  12. 2026-08-26 22:27 UTCEG score recompute
  13. 2026-08-26 22:27 UTCVendor advisory
  14. 2026-08-26 22:27 UTCGHSA enrichment
  15. 2026-08-26 14:46 UTCEPSS rescore
  16. 2026-08-26 07:25 UTCVendor advisory
  17. 2026-08-26 07:25 UTCGHSA enrichment
  18. 2026-08-25 18:49 UTCEG score recompute
  19. 2026-08-25 18:49 UTCGHSA enrichment
  20. 2026-08-25 13:49 UTCEPSS rescore
  21. 2026-08-25 06:45 UTCVendor advisory
  22. 2026-08-25 06:45 UTCGHSA enrichment
  23. 2026-08-24 19:10 UTCEG score recompute
  24. 2026-08-24 19:10 UTCVendor advisory
  25. 2026-08-24 19:10 UTCGHSA enrichment
Show 75 more
  1. 2026-08-24 06:56 UTCVendor advisory
  2. 2026-08-24 06:56 UTCGHSA enrichment
  3. 2026-08-23 19:24 UTCVendor advisory
  4. 2026-08-23 19:24 UTCGHSA enrichment
  5. 2026-08-23 07:52 UTCEG score recompute
  6. 2026-08-23 07:52 UTCVendor advisory
  7. 2026-08-23 07:52 UTCGHSA enrichment
  8. 2026-08-23 00:19 UTCEPSS rescore
  9. 2026-08-22 20:21 UTCVendor advisory
  10. 2026-08-22 20:21 UTCGHSA enrichment
  11. 2026-08-22 08:49 UTCEG score recompute
  12. 2026-08-22 08:49 UTCVendor advisory
  13. 2026-08-22 08:49 UTCGHSA enrichment
  14. 2026-08-21 23:49 UTCEPSS rescore
  15. 2026-08-21 21:17 UTCVendor advisory
  16. 2026-08-21 21:17 UTCGHSA enrichment
  17. 2026-08-21 09:46 UTCEG score recompute
  18. 2026-08-21 09:46 UTCVendor advisory
  19. 2026-08-21 09:46 UTCGHSA enrichment
  20. 2026-08-20 22:55 UTCEPSS rescore
  21. 2026-08-20 22:14 UTCVendor advisory
  22. 2026-08-20 22:14 UTCGHSA enrichment
  23. 2026-08-20 10:42 UTCVendor advisory
  24. 2026-08-20 10:42 UTCGHSA enrichment
  25. 2026-08-19 23:11 UTCEG score recompute
  26. 2026-08-19 23:11 UTCVendor advisory
  27. 2026-08-19 23:11 UTCGHSA enrichment
  28. 2026-08-19 17:04 UTCEPSS rescore
  29. 2026-08-19 07:24 UTCVendor advisory
  30. 2026-08-19 07:23 UTCGHSA enrichment
  31. 2026-08-18 19:50 UTCEG score recompute
  32. 2026-08-18 19:50 UTCVendor advisory
  33. 2026-08-18 19:50 UTCGHSA enrichment
  34. 2026-08-18 01:54 UTCVendor advisory
  35. 2026-08-18 01:54 UTCGHSA enrichment
  36. 2026-08-17 14:03 UTCEG score recompute
  37. 2026-08-17 14:03 UTCVendor advisory
  38. 2026-08-17 14:03 UTCGHSA enrichment
  39. 2026-08-17 13:47 UTCEPSS rescore
  40. 2026-08-17 02:32 UTCVendor advisory
  41. 2026-08-17 02:32 UTCGHSA enrichment
  42. 2026-08-16 15:00 UTCEG score recompute
  43. 2026-08-16 15:00 UTCVendor advisory
  44. 2026-08-16 15:00 UTCGHSA enrichment
  45. 2026-08-16 14:56 UTCEPSS rescore
  46. 2026-08-16 03:29 UTCEG score recompute
  47. 2026-08-16 03:29 UTCVendor advisory
  48. 2026-08-16 03:29 UTCGHSA enrichment
  49. 2026-08-15 15:58 UTCVendor advisory
  50. 2026-08-15 15:58 UTCGHSA enrichment
  51. 2026-08-15 04:26 UTCEG score recompute
  52. 2026-08-15 04:26 UTCVendor advisory
  53. 2026-08-15 04:26 UTCGHSA enrichment
  54. 2026-08-15 01:30 UTCEPSS rescore
  55. 2026-08-14 16:54 UTCVendor advisory
  56. 2026-08-14 16:54 UTCGHSA enrichment
  57. 2026-08-14 05:16 UTCEG score recompute
  58. 2026-08-14 05:16 UTCVendor advisory
  59. 2026-08-14 05:16 UTCGHSA enrichment
  60. 2026-08-13 22:00 UTCEPSS rescore
  61. 2026-08-13 17:44 UTCVendor advisory
  62. 2026-08-13 17:44 UTCGHSA enrichment
  63. 2026-08-13 05:56 UTCVendor advisory
  64. 2026-08-13 05:56 UTCGHSA enrichment
  65. 2026-08-12 18:24 UTCEG score recompute
  66. 2026-08-12 18:24 UTCVendor advisory
  67. 2026-08-12 18:24 UTCGHSA enrichment
  68. 2026-08-12 13:51 UTCEPSS rescore
  69. 2026-08-12 06:53 UTCVendor advisory
  70. 2026-08-12 06:53 UTCGHSA enrichment
  71. 2026-08-11 19:21 UTCVendor advisory
  72. 2026-08-11 19:21 UTCGHSA enrichment
  73. 2026-08-11 07:49 UTCEG score recompute
  74. 2026-08-11 07:49 UTCVendor advisory
  75. 2026-08-11 07:49 UTCGHSA enrichment

Frequently asked(5)

What is CVE-2026-63894?
CVE-2026-63894 is a high vulnerability published on July 19, 2026. In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: serialize DMABUF cancel against request completion ffsepfiledmabufiocomplete() calls usbepfree_request() on the completed request but leaves priv->req, the back-pointer that ffsdmabuftransfer() set on submission,…
When was CVE-2026-63894 disclosed?
CVE-2026-63894 was first published in the National Vulnerability Database on July 19, 2026, with the most recent update on August 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-63894 actively exploited?
CVE-2026-63894 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 93.9% of all scored CVEs.
What is the CVSS score of CVE-2026-63894?
CVE-2026-63894 has a CVSS v4.0 base score of 7.8 (CNA self-assessment; NVD's own analysis pending).
How do I remediate CVE-2026-63894?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-63894, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-63894

Explore →

Is Your Infrastructure Affected by CVE-2026-63894?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.