# CVE-2025-37805: sound/virtio: Fix cancel\_sync warnings on uninitialized work\_structs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2025-05-08T06:26:05.084Z
- **Modified:** 2026-06-17T09:15:28.477Z

## Who should check

- Anyone running Linux \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< e03b10c45c7675b6098190c6e7de1b656d8bcdbe; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 54c7b864fbe4423a07b443a4ada0106052942116; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 66046b586c0aaa9332483bcdbd76e3305d6138e9; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 9908498ce929a5a052b79bb7942f9ea317312ce4; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 3c7df2e27346eb40a0e86230db1ccab195c97cfe
- Anyone running Linux 5.13

## Description

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

sound/virtio: Fix cancel\_sync warnings on uninitialized work\_structs

Betty reported hitting the following warning:

\[    8.709131\]\[  T221\] WARNING: CPU: 2 PID: 221 at kernel/workqueue.c:4182
...
\[    8.713282\]\[  T221\] Call trace:
\[    8.713365\]\[  T221\]  \_\_flush\_work+0x8d0/0x914
\[    8.713468\]\[  T221\]  \_\_cancel\_work\_sync+0xac/0xfc
\[    8.713570\]\[  T221\]  cancel\_work\_sync+0x24/0x34
\[    8.713667\]\[  T221\]  virtsnd\_remove+0xa8/0xf8 \[virtio\_snd ab15f34d0dd772f6d11327e08a81d46dc9c36276\]
\[    8.713868\]\[  T221\]  virtsnd\_probe+0x48c/0x664 \[virtio\_snd ab15f34d0dd772f6d11327e08a81d46dc9c36276\]
\[    8.714035\]\[  T221\]  virtio\_dev\_probe+0x28c/0x390
\[    8.714139\]\[  T221\]  really\_probe+0x1bc/0x4c8
...

It seems we're hitting the error path in virtsnd\_probe(), which
triggers a virtsnd\_remove() which iterates over the substreams
calling cancel\_work\_sync() on the elapsed\_period work\_struct.

Looking at the code, from earlier in:
virtsnd\_probe()-\>virtsnd\_build\_devs()-\>virtsnd\_pcm\_parse\_cfg()

We set snd-\>nsubstreams, allocate the snd-\>substreams, and if
we then hit an error on the info allocation or something in
virtsnd\_ctl\_query\_info() fails, we will exit without having
initialized the elapsed\_period work\_struct.

When that error path unwinds we then call virtsnd\_remove()
which as long as the substreams array is allocated, will iterate
through calling cancel\_work\_sync() on the uninitialized work
struct hitting this warning.

Takashi Iwai suggested this fix, which initializes the substreams
structure right after allocation, so that if we hit the error
paths we avoid trying to cleanup uninitialized data.

Note: I have not yet managed to reproduce the issue myself, so
this patch has had limited testing.

Feedback or thoughts would be appreciated!

## Affected and fixed versions

- Linux: \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< e03b10c45c7675b6098190c6e7de1b656d8bcdbe; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 54c7b864fbe4423a07b443a4ada0106052942116; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 66046b586c0aaa9332483bcdbd76e3305d6138e9; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 9908498ce929a5a052b79bb7942f9ea317312ce4; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 3c7df2e27346eb40a0e86230db1ccab195c97cfe (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- Upgrade Linux to 3c7df2e27346eb40a0e86230db1ccab195c97cfe or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37805. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37805.md
Affected: Linux >= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, < e03b10c45c7675b6098190c6e7de1b656d8bcdbe; >= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, < 54c7b864fbe4423a07b443a4ada0106052942116; >= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, < 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45; >= 29b96bf50ba958eb5f097cd…
Fixed in: Linux 54c7b864fbe4423a07b443a4ada0106052942116, Linux 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45, Linux 66046b586c0aaa9332483bcdbd76e3305d6138e9, Linux 9908498ce929a5a052b79bb7942f9ea317312ce4, Linux 3c7df2e27346eb40a0e86230db1ccab195c97cfe

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37805 being exploited?

There is no confirmed exploitation: CVE-2025-37805 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37805?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37805?

Linux \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< e03b10c45c7675b6098190c6e7de1b656d8bcdbe; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 54c7b864fbe4423a07b443a4ada0106052942116; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 66046b586c0aaa9332483bcdbd76e3305d6138e9; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 9908498ce929a5a052b79bb7942f9ea317312ce4; \>= 29b96bf50ba958eb5f097cdc3fbd4c1acf9547a2, \< 3c7df2e27346eb40a0e86230db1ccab195c97cfe; Linux 5.13.

### Is there a fix for CVE-2025-37805?

Yes. Fixed in Linux 54c7b864fbe4423a07b443a4ada0106052942116, Linux 5be9407b41eae20eef9140f5cfbfcbc3d01aaf45, Linux 66046b586c0aaa9332483bcdbd76e3305d6138e9, Linux 9908498ce929a5a052b79bb7942f9ea317312ce4, Linux 3c7df2e27346eb40a0e86230db1ccab195c97cfe. Upgrade Linux to 3c7df2e27346eb40a0e86230db1ccab195c97cfe or later.

### How do I check if I'm affected by CVE-2025-37805?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/e03b10c45c7675b6098190c6e7de1b656d8bcdbe>
- patch: <https://git.kernel.org/stable/c/54c7b864fbe4423a07b443a4ada0106052942116>
- patch: <https://git.kernel.org/stable/c/5be9407b41eae20eef9140f5cfbfcbc3d01aaf45>
- patch: <https://git.kernel.org/stable/c/66046b586c0aaa9332483bcdbd76e3305d6138e9>
- patch: <https://git.kernel.org/stable/c/9908498ce929a5a052b79bb7942f9ea317312ce4>
- patch: <https://git.kernel.org/stable/c/3c7df2e27346eb40a0e86230db1ccab195c97cfe>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37805>

HTML: <https://flawdb.com/CVE-2025-37805> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37805>
