{"id":"CVE-2022-49085","published":"2025-02-26T01:54:43Z","modified":"2026-08-05T08:53:48Z","title":"drbd: Fix five use after free bugs in get_initial_state","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrbd: Fix five use after free bugs in get_initial_state\n\nIn get_initial_state, it calls notify_initial_state_done(skb,..) if\ncb->args[5]==1. If genlmsg_put() failed in notify_initial_state_done(),\nthe skb will be freed by nlmsg_free(skb).\nThen get_initial_state will goto out and the freed skb will be used by\nreturn value skb->len, which is a uaf bug.\n\nWhat's worse, the same problem goes even further: skb can also be\nfreed in the notify_*_state_change -> notify_*_state calls below.\nThus 4 additional uaf bugs happened.\n\nMy patch lets the problem callee functions: notify_initial_state_done\nand notify_*_state_change return an error code if errors happen.\nSo that the error codes could be propagated and the uaf bugs can be avoid.\n\nv2 reports a compilation warning. This v3 fixed this warning and built\nsuccessfully in my local environment with no additional warnings.\nv2: https://lore.kernel.org/patchwork/patch/1435218/","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00306,"percentile":0.15809,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/0489700bfeb1e53eb2039c2291c67e71b0b40103","tags":[]},{"url":"https://git.kernel.org/stable/c/dcf6be17b5c53b741898d2223b23e66d682de300","tags":[]},{"url":"https://git.kernel.org/stable/c/188fe6b26765edbad4055611c0f788b6870f4024","tags":[]},{"url":"https://git.kernel.org/stable/c/b6a4055036eed1f5e239ce3d8b0db1ce38bba447","tags":[]},{"url":"https://git.kernel.org/stable/c/594205b4936771a250f9d141e7e0fff21c3dd2d9","tags":[]},{"url":"https://git.kernel.org/stable/c/a972c768723359ec995579902473028fe3cd64b1","tags":[]},{"url":"https://git.kernel.org/stable/c/de63e74da2333b4068bb79983e632db730fea97e","tags":[]},{"url":"https://git.kernel.org/stable/c/226e993c39405292781bfcf4b039a8db56aab362","tags":[]},{"url":"https://git.kernel.org/stable/c/aadb22ba2f656581b2f733deb3a467c48cc618f6","tags":[]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":3.16},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a29728463b254ce81ecefdf20c1a02e01d9361da, < 0489700bfeb1e53eb2039c2291c67e71b0b40103",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < dcf6be17b5c53b741898d2223b23e66d682de300",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < 188fe6b26765edbad4055611c0f788b6870f4024",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < b6a4055036eed1f5e239ce3d8b0db1ce38bba447",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < 594205b4936771a250f9d141e7e0fff21c3dd2d9",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < a972c768723359ec995579902473028fe3cd64b1",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < de63e74da2333b4068bb79983e632db730fea97e",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < 226e993c39405292781bfcf4b039a8db56aab362",">= a29728463b254ce81ecefdf20c1a02e01d9361da, < aadb22ba2f656581b2f733deb3a467c48cc618f6"]},{"vendor":"Linux","product":"Linux","versions":["4.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-27T17:59:12.644580Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-55119","exploited":false,"provenance":"source"}}