{"id":"CVE-2022-49065","published":"2025-02-26T01:54:33Z","modified":"2026-08-05T08:53:42Z","title":"SUNRPC: Fix the svc_deferred_event trace class","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"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->xprt 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.51829,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/85ee17ca21cf92989e8c923e3ea4514c291e9d38","tags":[]},{"url":"https://git.kernel.org/stable/c/726ae7300fcc25fefa46d188cc07eb16dc908f9e","tags":[]},{"url":"https://git.kernel.org/stable/c/c2456f470eea3bd06574d988bf6089e7c3f4c5cc","tags":[]},{"url":"https://git.kernel.org/stable/c/4d5004451ab2218eab94a30e1841462c9316ba19","tags":[]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.37},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= ece200ddd54b9ce840cfee554fb812560c545c7d, < 85ee17ca21cf92989e8c923e3ea4514c291e9d38",">= ece200ddd54b9ce840cfee554fb812560c545c7d, < 726ae7300fcc25fefa46d188cc07eb16dc908f9e",">= ece200ddd54b9ce840cfee554fb812560c545c7d, < c2456f470eea3bd06574d988bf6089e7c3f4c5cc",">= ece200ddd54b9ce840cfee554fb812560c545c7d, < 4d5004451ab2218eab94a30e1841462c9316ba19"]},{"vendor":"Linux","product":"Linux","versions":["4.17"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:49:41.900091Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55139","exploited":false,"provenance":"source"}}