# CVE-2022-49779: kprobes: Skip clearing aggrprobe's post\_handler in kprobe-on-ftrace case

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-05-01T14:09:14.445Z
- **Modified:** 2026-11-05T20:17:10.480Z

## Who should check

- Anyone running Linux \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7b0007b28dd970176f2e297c06ae63eea2447127; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7d606ae1abcc3eab5408e42444d789dc7def51b8; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< c49cc2c059b503e962c2f13a806c105f9b757df4; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 55788ebbe8b365b4375bd56b4ba7db79d393a370; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb
- Anyone running Linux 5.4

## Description

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

kprobes: Skip clearing aggrprobe's post\_handler in kprobe-on-ftrace case

In \_\_unregister\_kprobe\_top(), if the currently unregistered probe has
post\_handler but other child probes of the aggrprobe do not have
post\_handler, the post\_handler of the aggrprobe is cleared. If this is
a ftrace-based probe, there is a problem. In later calls to
disarm\_kprobe(), we will use kprobe\_ftrace\_ops because post\_handler is
NULL. But we're armed with kprobe\_ipmodify\_ops. This triggers a WARN in
\_\_disarm\_kprobe\_ftrace() and may even cause use-after-free:

  Failed to disarm kprobe-ftrace at kernel\_clone+0x0/0x3c0 (error -2)
  WARNING: CPU: 5 PID: 137 at kernel/kprobes.c:1135 \_\_disarm\_kprobe\_ftrace.isra.21+0xcf/0xe0
  Modules linked in: testKprobe\_007(-)
  CPU: 5 PID: 137 Comm: rmmod Not tainted 6.1.0-rc4-dirty \#18
  \[...\]
  Call Trace:
   \<TASK\>
   \_\_disable\_kprobe+0xcd/0xe0
   \_\_unregister\_kprobe\_top+0x12/0x150
   ? mutex\_lock+0xe/0x30
   unregister\_kprobes.part.23+0x31/0xa0
   unregister\_kprobe+0x32/0x40
   \_\_x64\_sys\_delete\_module+0x15e/0x260
   ? do\_user\_addr\_fault+0x2cd/0x6b0
   do\_syscall\_64+0x3a/0x90
   entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd
   \[...\]

For the kprobe-on-ftrace case, we keep the post\_handler setting to
identify this aggrprobe armed with kprobe\_ipmodify\_ops. This way we
can disarm it correctly.

## Affected and fixed versions

- Linux: \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7b0007b28dd970176f2e297c06ae63eea2447127; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7d606ae1abcc3eab5408e42444d789dc7def51b8; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< c49cc2c059b503e962c2f13a806c105f9b757df4; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 55788ebbe8b365b4375bd56b4ba7db79d393a370; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb (cvelist)
- Linux: 5.4 (cvelist)

## Mitigation

- Upgrade Linux to 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-49779.md
Affected: Linux >= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, < 7b0007b28dd970176f2e297c06ae63eea2447127; >= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, < 7d606ae1abcc3eab5408e42444d789dc7def51b8; >= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, < c49cc2c059b503e962c2f13a806c105f9b757df4; >= 0bc11ed5ab60c135aa764a6…
Fixed in: Linux 7b0007b28dd970176f2e297c06ae63eea2447127, Linux 7d606ae1abcc3eab5408e42444d789dc7def51b8, Linux 55788ebbe8b365b4375bd56b4ba7db79d393a370, Linux 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb

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-2022-49779 being exploited?

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

### How serious is CVE-2022-49779?

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

### Which versions are affected by CVE-2022-49779?

Linux \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7b0007b28dd970176f2e297c06ae63eea2447127; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 7d606ae1abcc3eab5408e42444d789dc7def51b8; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< c49cc2c059b503e962c2f13a806c105f9b757df4; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 55788ebbe8b365b4375bd56b4ba7db79d393a370; \>= 0bc11ed5ab60c135aa764a62c02cd5ea68289de4, \< 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb; Linux 5.4.

### Is there a fix for CVE-2022-49779?

Yes. Fixed in Linux 7b0007b28dd970176f2e297c06ae63eea2447127, Linux 7d606ae1abcc3eab5408e42444d789dc7def51b8, Linux 55788ebbe8b365b4375bd56b4ba7db79d393a370, Linux 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb. Upgrade Linux to 5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb or later.

### How do I check if I'm affected by CVE-2022-49779?

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/7b0007b28dd970176f2e297c06ae63eea2447127>
- patch: <https://git.kernel.org/stable/c/7d606ae1abcc3eab5408e42444d789dc7def51b8>
- patch: <https://git.kernel.org/stable/c/c49cc2c059b503e962c2f13a806c105f9b757df4>
- patch: <https://git.kernel.org/stable/c/55788ebbe8b365b4375bd56b4ba7db79d393a370>
- patch: <https://git.kernel.org/stable/c/5dd7caf0bdc5d0bae7cf9776b4d739fb09bd5ebb>

## 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-2022-49779>

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