# CVE-2022-49065: SUNRPC: Fix the svc\_deferred\_event trace class

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-02-26T01:54:33.881Z
- **Modified:** 2026-08-05T08:53:42.252Z

## Who should check

- Anyone running Linux \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 85ee17ca21cf92989e8c923e3ea4514c291e9d38; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 726ae7300fcc25fefa46d188cc07eb16dc908f9e; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< c2456f470eea3bd06574d988bf6089e7c3f4c5cc; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 4d5004451ab2218eab94a30e1841462c9316ba19
- Anyone running Linux 4.17

## Description

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

SUNRPC: Fix the svc\_deferred\_event trace class

Fix a NULL deref crash that occurs when an svc\_rqst is deferred
while the sunrpc tracing subsystem is enabled. svc\_revisit() sets
dr-\>xprt to NULL, so it can't be relied upon in the tracepoint to
provide the remote's address.

Unfortunately we can't revert the "svc\_deferred\_class" hunk in
commit ece200ddd54b ("sunrpc: Save remote presentation address in
svc\_xprt for trace events") because there is now a specific check
of event format specifiers for unsafe dereferences. The warning
that check emits is:

  event svc\_defer\_recv has unsafe dereference of argument 1

A "%pISpc" format specifier with a "struct sockaddr \*" is indeed
flagged by this check.

Instead, take the brute-force approach used by the svcrdma\_qp\_error
tracepoint. Convert the dr::addr field into a presentation address
in the TP\_fast\_assign() arm of the trace event, and store that as
a string. This fix can be backported to -stable kernels.

In the meantime, commit c6ced22997ad ("tracing: Update print fmt
check to handle new \_\_get\_sockaddr() macro") is now in v5.18, so
this wonky fix can be replaced with \_\_sockaddr() and friends
properly during the v5.19 merge window.

## Affected and fixed versions

- Linux: \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 85ee17ca21cf92989e8c923e3ea4514c291e9d38; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 726ae7300fcc25fefa46d188cc07eb16dc908f9e; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< c2456f470eea3bd06574d988bf6089e7c3f4c5cc; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 4d5004451ab2218eab94a30e1841462c9316ba19 (cvelist)
- Linux: 4.17 (cvelist)

## Mitigation

- Upgrade Linux to 4d5004451ab2218eab94a30e1841462c9316ba19 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-49065. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49065.md
Affected: Linux >= ece200ddd54b9ce840cfee554fb812560c545c7d, < 85ee17ca21cf92989e8c923e3ea4514c291e9d38; >= ece200ddd54b9ce840cfee554fb812560c545c7d, < 726ae7300fcc25fefa46d188cc07eb16dc908f9e; >= ece200ddd54b9ce840cfee554fb812560c545c7d, < c2456f470eea3bd06574d988bf6089e7c3f4c5cc; >= ece200ddd54b9ce840cfee5…
Fixed in: Linux 85ee17ca21cf92989e8c923e3ea4514c291e9d38, Linux 726ae7300fcc25fefa46d188cc07eb16dc908f9e, Linux 4d5004451ab2218eab94a30e1841462c9316ba19

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 85ee17ca21cf92989e8c923e3ea4514c291e9d38; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 726ae7300fcc25fefa46d188cc07eb16dc908f9e; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< c2456f470eea3bd06574d988bf6089e7c3f4c5cc; \>= ece200ddd54b9ce840cfee554fb812560c545c7d, \< 4d5004451ab2218eab94a30e1841462c9316ba19; Linux 4.17.

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

Yes. Fixed in Linux 85ee17ca21cf92989e8c923e3ea4514c291e9d38, Linux 726ae7300fcc25fefa46d188cc07eb16dc908f9e, Linux 4d5004451ab2218eab94a30e1841462c9316ba19. Upgrade Linux to 4d5004451ab2218eab94a30e1841462c9316ba19 or later.

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

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/85ee17ca21cf92989e8c923e3ea4514c291e9d38>
- patch: <https://git.kernel.org/stable/c/726ae7300fcc25fefa46d188cc07eb16dc908f9e>
- patch: <https://git.kernel.org/stable/c/c2456f470eea3bd06574d988bf6089e7c3f4c5cc>
- patch: <https://git.kernel.org/stable/c/4d5004451ab2218eab94a30e1841462c9316ba19>

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

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