CVE-2022-49755: usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait
Vulnerability summary
CVE-2022-49755 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14.1% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 27-03-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait While performing fast composition switch, there is a possibility that the process of ffs_ep0_write/ffs_ep0_read get into a race condition due to ep0req being freed up from functionfs_unbind. Consider the scenario that the ffs_ep0_write calls the ffs_ep0_queue_wait by taking a lock &ffs->ev.waitq.lock. However, the functionfs_unbind isn't bounded so it can go ahead and mark the ep0req to NULL, and since there is no NULL check in ffs_ep0_queue_wait we will end up in use-after-free. Fix this by making a serialized execution between the two functions using a mutex_lock(ffs->mutex).
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.23% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu113 products
- linuxAll versions (No fix recorded) | < 4.15.0-209.220 | < 5.4.0-147.164 | < 5.15.0-70.77
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 4.15.0-1154.167 | < 5.4.0-1100.108 | < 5.15.0-1034.38
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < facf353c9e8d7885b686d9a4b173d4e0af6441d2 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < e9036e951f93fb8d7b5e9d6e2c7f94a4da312ae4 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < a8d40942df074f4ebcb9bd3413596d92f323b064 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 6dd9ea05534f323668db94fcc2726c7a84547e78 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < ae8e136bcaae96163b5821984de1036efc9abb1a | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 6aee197b7fbcd61596a78b47d553f2f99111f217 | ≥ ddf8abd2599491cbad959c700b90ba72a5dce8d0, < 6a19da111057f69214b97c62fb0ac59023970850 | 2.6.35
- linux_kernel≥ 2.6.35, < 4.14.305 | ≥ 4.15, < 4.19.272 | ≥ 4.20, < 5.4.231 | ≥ 5.5, < 5.10.166 | ≥ 5.11, < 5.15.91 | ≥ 5.16, < 6.1.9 | 6.2:rc1 | 6.2:rc2 | 6.2:rc3 | 6.2:rc4
Debian1 product
- linux< 6.1.11-1
3 vendors · 116 products