{"id":"CVE-2022-49065","summary":"SUNRPC: Fix the svc_deferred_event trace class","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nSUNRPC: Fix the svc_deferred_event trace class\n\nFix a NULL deref crash that occurs when an svc_rqst is deferred\nwhile the sunrpc tracing subsystem is enabled. svc_revisit() sets\ndr-\u003exprt to NULL, so it can't be relied upon in the tracepoint to\nprovide the remote's address.\n\nUnfortunately we can't revert the \"svc_deferred_class\" hunk in\ncommit ece200ddd54b (\"sunrpc: Save remote presentation address in\nsvc_xprt for trace events\") because there is now a specific check\nof event format specifiers for unsafe dereferences. The warning\nthat check emits is:\n\n  event svc_defer_recv has unsafe dereference of argument 1\n\nA \"%pISpc\" format specifier with a \"struct sockaddr *\" is indeed\nflagged by this check.\n\nInstead, take the brute-force approach used by the svcrdma_qp_error\ntracepoint. Convert the dr::addr field into a presentation address\nin the TP_fast_assign() arm of the trace event, and store that as\na string. This fix can be backported to -stable kernels.\n\nIn the meantime, commit c6ced22997ad (\"tracing: Update print fmt\ncheck to handle new __get_sockaddr() macro\") is now in v5.18, so\nthis wonky fix can be replaced with __sockaddr() and friends\nproperly during the v5.19 merge window.","modified":"2026-04-02T08:27:16.048527Z","published":"2025-02-26T01:54:33.881Z","related":["SUSE-SU-2025:1027-1","SUSE-SU-2025:1176-1","SUSE-SU-2025:1183-1","SUSE-SU-2025:1194-1","SUSE-SU-2025:1241-1","SUSE-SU-2025:1263-1","SUSE-SU-2025:1293-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49065.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/4d5004451ab2218eab94a30e1841462c9316ba19"},{"type":"WEB","url":"https://git.kernel.org/stable/c/726ae7300fcc25fefa46d188cc07eb16dc908f9e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/85ee17ca21cf92989e8c923e3ea4514c291e9d38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c2456f470eea3bd06574d988bf6089e7c3f4c5cc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49065.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49065"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ece200ddd54b9ce840cfee554fb812560c545c7d"},{"fixed":"85ee17ca21cf92989e8c923e3ea4514c291e9d38"},{"fixed":"726ae7300fcc25fefa46d188cc07eb16dc908f9e"},{"fixed":"c2456f470eea3bd06574d988bf6089e7c3f4c5cc"},{"fixed":"4d5004451ab2218eab94a30e1841462c9316ba19"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49065.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}