# CVE-2025-37747: perf: Fix hang while freeing sigtrap event

> 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, NVD) `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.29% (percentile 14, 2026-11-26)
- **Published:** 2025-05-01T12:55:54.028Z
- **Modified:** 2026-11-05T21:17:52.120Z

## Who should check

- Anyone running Linux \>= ed2c202dac55423a52d7e2290f2888bf08b8ee99, \< 20ab73bb467d900662dca043452aadecb2db8338; \>= 104e258a004037bc7dba9f6085c71dad6af57ad4, \< aae58a39ac4c63c3fa53536fb2504c9f1d0e1719; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< fa1827fa968c0674e9b6fca223fa9fb4da4493eb; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 665b87b8f8b3aeb49083ef3b65c4953e7753fc12; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 1267bd38f161c1a27d9b722de017027167a225a0; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 56799bc035658738f362acec3e7647bb84e68933; 9ad46f1fef421d43cdab3a7d1744b2f43b54dae0; f34d8307a73a18de5320fcc6f40403146d061891; \>= 6.1.103, \< 6.1.191; \>= 6.6.44, \< 6.6.160; …
- Anyone running Linux 6.11

## Description

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

perf: Fix hang while freeing sigtrap event

Perf can hang while freeing a sigtrap event if a related deferred
signal hadn't managed to be sent before the file got closed:

perf\_event\_overflow()
   task\_work\_add(perf\_pending\_task)

fput()
   task\_work\_add(\_\_\_\_fput())

task\_work\_run()
    \_\_\_\_fput()
        perf\_release()
            perf\_event\_release\_kernel()
                \_free\_event()
                    perf\_pending\_task\_sync()
                        task\_work\_cancel() -\> FAILED
                        rcuwait\_wait\_event()

Once task\_work\_run() is running, the list of pending callbacks is
removed from the task\_struct and from this point on task\_work\_cancel()
can't remove any pending and not yet started work items, hence the
task\_work\_cancel() failure and the hang on rcuwait\_wait\_event().

Task work could be changed to remove one work at a time, so a work
running on the current task can always cancel a pending one, however
the wait / wake design is still subject to inverted dependencies when
remote targets are involved, as pictured by Oleg:

T1                                                      T2

fd = perf\_event\_open(pid =\> T2-\>pid);                  fd = perf\_event\_open(pid =\> T1-\>pid);
close(fd)                                              close(fd)
    \<IRQ\>                                                  \<IRQ\>
    perf\_event\_overflow()                                  perf\_event\_overflow()
       task\_work\_add(perf\_pending\_task)                        task\_work\_add(perf\_pending\_task)
    \</IRQ\>                                                 \</IRQ\>
    fput()                                                 fput()
        task\_work\_add(\_\_\_\_fput())                              task\_work\_add(\_\_\_\_fput())

    task\_work\_run()                                        task\_work\_run()
        \_\_\_\_fput()                                             \_\_\_\_fput()
            perf\_release()                                         perf\_release()
                perf\_event\_release\_kernel()                            perf\_event\_release\_kernel()
                    \_free\_event()                                          \_free\_event()
                        perf\_pending\_task\_sync()                               perf\_pending\_task\_sync()
                            rcuwait\_wait\_event()                                   rcuwait\_wait\_event()

Therefore the only option left is to acquire the event reference count
upon queueing the perf task work and release it from the task work, just
like it was done before 3a5465418f5f ("perf: Fix event leak upon exec and file release")
but without the leaks it fixed.

Some adjustments are necessary to make it work:

\* A child event might dereference its parent upon freeing. Care must be
  taken to release the parent last.

\* Some places assuming the event doesn't have any reference held and
  therefore can be freed right away must instead put the reference and
  let the reference counting to its job.

## Affected and fixed versions

- Linux: \>= ed2c202dac55423a52d7e2290f2888bf08b8ee99, \< 20ab73bb467d900662dca043452aadecb2db8338; \>= 104e258a004037bc7dba9f6085c71dad6af57ad4, \< aae58a39ac4c63c3fa53536fb2504c9f1d0e1719; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< fa1827fa968c0674e9b6fca223fa9fb4da4493eb; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 665b87b8f8b3aeb49083ef3b65c4953e7753fc12; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 1267bd38f161c1a27d9b722de017027167a225a0; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 56799bc035658738f362acec3e7647bb84e68933; 9ad46f1fef421d43cdab3a7d1744b2f43b54dae0; f34d8307a73a18de5320fcc6f40403146d061891; \>= 6.1.103, \< 6.1.191; \>= 6.6.44, \< 6.6.160; … (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-37747.md
Affected: Linux >= ed2c202dac55423a52d7e2290f2888bf08b8ee99, < 20ab73bb467d900662dca043452aadecb2db8338; >= 104e258a004037bc7dba9f6085c71dad6af57ad4, < aae58a39ac4c63c3fa53536fb2504c9f1d0e1719; >= 3a5465418f5fd970e86a86c7f4075be262682840, < fa1827fa968c0674e9b6fca223fa9fb4da4493eb; >= 3a5465418f5fd970e86a86c…
Fixed in: Linux 20ab73bb467d900662dca043452aadecb2db8338, Linux 665b87b8f8b3aeb49083ef3b65c4953e7753fc12, Linux 1267bd38f161c1a27d9b722de017027167a225a0, Linux 56799bc035658738f362acec3e7647bb84e68933, Linux 6.1.191, Linux 6.6.160

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-37747 being exploited?

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

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

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

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

Linux \>= ed2c202dac55423a52d7e2290f2888bf08b8ee99, \< 20ab73bb467d900662dca043452aadecb2db8338; \>= 104e258a004037bc7dba9f6085c71dad6af57ad4, \< aae58a39ac4c63c3fa53536fb2504c9f1d0e1719; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< fa1827fa968c0674e9b6fca223fa9fb4da4493eb; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 665b87b8f8b3aeb49083ef3b65c4953e7753fc12; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 1267bd38f161c1a27d9b722de017027167a225a0; \>= 3a5465418f5fd970e86a86c7f4075be262682840, \< 56799bc035658738f362acec3e7647bb84e68933; 9ad46f1fef421d43cdab3a7d1744b2f43b54dae0; f34d8307a73a18de5320fcc6f40403146d061891; \>= 6.1.103, \< 6.1.191; \>= 6.6.44, \< 6.6.160; …; Linux 6.11.

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

Yes. Fixed in Linux 20ab73bb467d900662dca043452aadecb2db8338, Linux 665b87b8f8b3aeb49083ef3b65c4953e7753fc12, Linux 1267bd38f161c1a27d9b722de017027167a225a0, Linux 56799bc035658738f362acec3e7647bb84e68933, Linux 6.1.191, Linux 6.6.160. No fix listed yet: follow the vendor advisory.

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

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/fa1827fa968c0674e9b6fca223fa9fb4da4493eb>
- patch: <https://git.kernel.org/stable/c/665b87b8f8b3aeb49083ef3b65c4953e7753fc12>
- patch: <https://git.kernel.org/stable/c/1267bd38f161c1a27d9b722de017027167a225a0>
- patch: <https://git.kernel.org/stable/c/56799bc035658738f362acec3e7647bb84e68933>
- other: <https://git.kernel.org/stable/c/20ab73bb467d900662dca043452aadecb2db8338>
- other: <https://git.kernel.org/stable/c/aae58a39ac4c63c3fa53536fb2504c9f1d0e1719>

## 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-37747>

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