CVE-2022-49085: drbd: Fix five use after free bugs in get_initial_state
Vulnerability summary
CVE-2022-49085 is a high (CVSS 7.8) Use After Free vulnerability in linux. EPSS estimates a 0.28% chance of exploitation in the next 30 days, higher than 20.7% of scored vulnerabilities.
Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 7Timeline
- 26-02-2025PublishedVulnerability first disclosed.
- 05-08-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: drbd: Fix five use after free bugs in get_initial_state In get_initial_state, it calls notify_initial_state_done(skb,..) if cb->args[5]==1. If genlmsg_put() failed in notify_initial_state_done(), the skb will be freed by nlmsg_free(skb). Then get_initial_state will goto out and the freed skb will be used by return value skb->len, which is a uaf bug. What's worse, the same problem goes even further: skb can also be freed in the notify_*_state_change -> notify_*_state calls below. Thus 4 additional uaf bugs happened. My patch lets the problem callee functions: notify_initial_state_done and notify_*_state_change return an error code if errors happen. So that the error codes could be propagated and the uaf bugs can be avoid. v2 reports a compilation warning. This v3 fixed this warning and built successfully in my local environment with no additional warnings. v2: https://lore.kernel.org/patchwork/patch/1435218/
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.28%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu105 products
- linux< 4.15.0-189.200 | < 5.4.0-117.132 | < 5.15.0-37.39
- linux-allwinner-5.19All versions (No fix recorded)
- linux-aws< 4.15.0-1137.148 | < 5.4.0-1078.84 | < 5.15.0-1011.14
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < 0489700bfeb1e53eb2039c2291c67e71b0b40103 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < dcf6be17b5c53b741898d2223b23e66d682de300 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < 188fe6b26765edbad4055611c0f788b6870f4024 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < b6a4055036eed1f5e239ce3d8b0db1ce38bba447 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < 594205b4936771a250f9d141e7e0fff21c3dd2d9 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < a972c768723359ec995579902473028fe3cd64b1 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < de63e74da2333b4068bb79983e632db730fea97e | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < 226e993c39405292781bfcf4b039a8db56aab362 | ≥ a29728463b254ce81ecefdf20c1a02e01d9361da, < aadb22ba2f656581b2f733deb3a467c48cc618f6 | 4.5
- linux_kernel≥ 4.5, < 4.9.311 | ≥ 4.10, < 4.14.276 | ≥ 4.15, < 4.19.238 | ≥ 4.20, < 5.4.189 | ≥ 5.5, < 5.10.111 | ≥ 5.11, < 5.15.34 | ≥ 5.16, < 5.16.20 | ≥ 5.17, < 5.17.3 | 5.18:rc1
Debian1 product
- linux< 5.17.3-1
3 vendors · 108 products