7.8

CVE-2022-49755: usb: gadget: f_fs: Prevent race during ffs_ep0_queue_wait

Analyzed
AliasesUBUNTU-CVE-2022-49755DEBIAN-CVE-2022-49755
Published 27-03-2025Last modified 05-08-2026

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.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.23%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 4

Timeline

  1. 27-03-2025
    PublishedVulnerability first disclosed.
  2. 05-08-2026
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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

References

11 links
Show all 11 references