GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2022-49085 (GCVE-0-2022-49085)

Vulnerability from cvelistv5 – Published: 2025-02-26 01:54 – Updated: 2026-08-05 08:53
VLAI
Title
drbd: Fix five use after free bugs in get_initial_state
Summary
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/
SSVC
Exploitation: none Automatable: no Technical Impact: total
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2025-02-27 17:59 UTC
CWE
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < 0489700bfeb1e53eb2039c2291c67e71b0b40103 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < dcf6be17b5c53b741898d2223b23e66d682de300 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < 188fe6b26765edbad4055611c0f788b6870f4024 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < b6a4055036eed1f5e239ce3d8b0db1ce38bba447 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < 594205b4936771a250f9d141e7e0fff21c3dd2d9 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < a972c768723359ec995579902473028fe3cd64b1 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < de63e74da2333b4068bb79983e632db730fea97e (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < 226e993c39405292781bfcf4b039a8db56aab362 (git)
Affected: a29728463b254ce81ecefdf20c1a02e01d9361da , < aadb22ba2f656581b2f733deb3a467c48cc618f6 (git)
guessed Create a notification for this product.
Linux Linux Affected: 4.5
Unaffected: 0 , < 4.5 (semver)
Unaffected: 4.9.311 , ≤ 4.9.* (semver)
Unaffected: 4.14.276 , ≤ 4.14.* (semver)
Unaffected: 4.19.238 , ≤ 4.19.* (semver)
Unaffected: 5.4.189 , ≤ 5.4.* (semver)
Unaffected: 5.10.111 , ≤ 5.10.* (semver)
Unaffected: 5.15.34 , ≤ 5.15.* (semver)
Unaffected: 5.16.20 , ≤ 5.16.* (semver)
Unaffected: 5.17.3 , ≤ 5.17.* (semver)
Unaffected: 5.18 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 7.8,
              "baseSeverity": "HIGH",
              "confidentialityImpact": "HIGH",
              "integrityImpact": "HIGH",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2022-49085",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-27T17:59:12.644580Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-416",
                "description": "CWE-416 Use After Free",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-02-27T18:02:29.848Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/drbd/drbd_int.h",
            "drivers/block/drbd/drbd_nl.c",
            "drivers/block/drbd/drbd_state.c",
            "drivers/block/drbd/drbd_state_change.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0489700bfeb1e53eb2039c2291c67e71b0b40103",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "dcf6be17b5c53b741898d2223b23e66d682de300",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "188fe6b26765edbad4055611c0f788b6870f4024",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "b6a4055036eed1f5e239ce3d8b0db1ce38bba447",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "594205b4936771a250f9d141e7e0fff21c3dd2d9",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "a972c768723359ec995579902473028fe3cd64b1",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "de63e74da2333b4068bb79983e632db730fea97e",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "226e993c39405292781bfcf4b039a8db56aab362",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            },
            {
              "lessThan": "aadb22ba2f656581b2f733deb3a467c48cc618f6",
              "status": "affected",
              "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/drbd/drbd_int.h",
            "drivers/block/drbd/drbd_nl.c",
            "drivers/block/drbd/drbd_state.c",
            "drivers/block/drbd/drbd_state_change.h"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.5"
            },
            {
              "lessThan": "4.5",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.311",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.276",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.238",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.189",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.111",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.34",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.16.*",
              "status": "unaffected",
              "version": "5.16.20",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.17.*",
              "status": "unaffected",
              "version": "5.17.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "5.18",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.311",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.276",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.238",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.189",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.111",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.34",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.16.20",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.17.3",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.18",
                  "versionStartIncluding": "4.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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-\u003eargs[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-\u003elen, which is a uaf bug.\n\nWhat\u0027s worse, the same problem goes even further: skb can also be\nfreed in the notify_*_state_change -\u003e 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/"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable path is reached via the DRBD generic netlink dump command DRBD_ADM_GET_INITIAL_STATE (local netlink syscall), not via DRBD\u2019s replication network protocol or packet processing.\nAC:L - An attacker can invoke the dumpit path at will; the bug is a use-after-free on the dump skb after nlmsg_free(), and UAF exploitation does not depend on a race or other conditions outside attacker influence.\nPR:L - DRBD_ADM_GET_INITIAL_STATE is registered without GENL_ADMIN_PERM and does not go through drbd_adm_prepare\u2019s CAP_NET_ADMIN check, so an unprivileged local user can trigger it.\nUI:N - Exploitation requires only sending a netlink dump request; no victim action such as mounting a device or opening a file is needed.\nS:U - Impact is confined to the local kernel\u2019s security authority (standard local privilege-escalation/DoS via heap UAF), with no VM/IOMMU/sandbox boundary crossing.\nC:H - Freeing the dump skb and then continuing to use it (skb-\u003elen read, then netlink_dump send/free paths) is a heap use-after-free that can expose or be leveraged for arbitrary kernel memory disclosure.\nI:H - The same UAF/double-free of the netlink dump skb enables heap corruption and write primitives suitable for control-flow hijacking or arbitrary kernel writes.\nA:H - Use-after-free and double-free of the dump skb can cause kernel oops/panic or otherwise crash the system when the freed object is reused."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:53:48.711Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0489700bfeb1e53eb2039c2291c67e71b0b40103"
        },
        {
          "url": "https://git.kernel.org/stable/c/dcf6be17b5c53b741898d2223b23e66d682de300"
        },
        {
          "url": "https://git.kernel.org/stable/c/188fe6b26765edbad4055611c0f788b6870f4024"
        },
        {
          "url": "https://git.kernel.org/stable/c/b6a4055036eed1f5e239ce3d8b0db1ce38bba447"
        },
        {
          "url": "https://git.kernel.org/stable/c/594205b4936771a250f9d141e7e0fff21c3dd2d9"
        },
        {
          "url": "https://git.kernel.org/stable/c/a972c768723359ec995579902473028fe3cd64b1"
        },
        {
          "url": "https://git.kernel.org/stable/c/de63e74da2333b4068bb79983e632db730fea97e"
        },
        {
          "url": "https://git.kernel.org/stable/c/226e993c39405292781bfcf4b039a8db56aab362"
        },
        {
          "url": "https://git.kernel.org/stable/c/aadb22ba2f656581b2f733deb3a467c48cc618f6"
        }
      ],
      "title": "drbd: Fix five use after free bugs in get_initial_state",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49085",
    "datePublished": "2025-02-26T01:54:43.579Z",
    "dateReserved": "2025-02-26T01:49:39.248Z",
    "dateUpdated": "2026-08-05T08:53:48.711Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49085",
      "date": "2026-09-18",
      "epss": "0.00279",
      "percentile": "0.20677"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/drbd/drbd_int.h",
                  "drivers/block/drbd/drbd_nl.c",
                  "drivers/block/drbd/drbd_state.c",
                  "drivers/block/drbd/drbd_state_change.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "0489700bfeb1e53eb2039c2291c67e71b0b40103",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "dcf6be17b5c53b741898d2223b23e66d682de300",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "188fe6b26765edbad4055611c0f788b6870f4024",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "b6a4055036eed1f5e239ce3d8b0db1ce38bba447",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "594205b4936771a250f9d141e7e0fff21c3dd2d9",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a972c768723359ec995579902473028fe3cd64b1",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "de63e74da2333b4068bb79983e632db730fea97e",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "226e993c39405292781bfcf4b039a8db56aab362",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "aadb22ba2f656581b2f733deb3a467c48cc618f6",
                    "status": "affected",
                    "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/drbd/drbd_int.h",
                  "drivers/block/drbd/drbd_nl.c",
                  "drivers/block/drbd/drbd_state.c",
                  "drivers/block/drbd/drbd_state_change.h"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "4.5"
                  },
                  {
                    "lessThan": "4.5",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.9.*",
                    "status": "unaffected",
                    "version": "4.9.311",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.276",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.238",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.189",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.111",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.34",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.16.*",
                    "status": "unaffected",
                    "version": "5.16.20",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.17.*",
                    "status": "unaffected",
                    "version": "5.17.3",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "5.18",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "16932DCC-5EC6-4AD4-AFC9-80EA0710A84F",
                    "versionEndExcluding": "4.9.311",
                    "versionStartIncluding": "4.5",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "6D9B028C-6313-47F9-94B7-5F8122345E49",
                    "versionEndExcluding": "4.14.276",
                    "versionStartIncluding": "4.10",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "FA28527A-11D3-41D2-9C4C-ECAC0D6A4A2D",
                    "versionEndExcluding": "4.19.238",
                    "versionStartIncluding": "4.15",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "8CB6E8F5-C2B1-46F3-A807-0F6104AC340F",
                    "versionEndExcluding": "5.4.189",
                    "versionStartIncluding": "4.20",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "96258501-7BCE-4C55-8A38-8AC9D327626D",
                    "versionEndExcluding": "5.10.111",
                    "versionStartIncluding": "5.5",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "D25878D3-7761-4E9F-8919-E92CD53896E0",
                    "versionEndExcluding": "5.15.34",
                    "versionStartIncluding": "5.11",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "ABBBA66E-0244-4621-966B-9790AF1EEB00",
                    "versionEndExcluding": "5.16.20",
                    "versionStartIncluding": "5.16",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "AE420AC7-1E59-4398-B84F-71F4B4337762",
                    "versionEndExcluding": "5.17.3",
                    "versionStartIncluding": "5.17",
                    "vulnerable": true
                  },
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:5.18:rc1:*:*:*:*:*:*",
                    "matchCriteriaId": "6AD94161-84BB-42E6-9882-4FC0C42E9FC1",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "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-\u003eargs[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-\u003elen, which is a uaf bug.\n\nWhat\u0027s worse, the same problem goes even further: skb can also be\nfreed in the notify_*_state_change -\u003e 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/"
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drbd: Arregla cinco errores de use-after-free en get_initial_state En get_initial_state, llama a notify_initial_state_done(skb,..) si cb-\u0026gt;args[5]==1. Si genlmsg_put() fall\u00f3 en notify_initial_state_done(), el skb ser\u00e1 liberado por nlmsg_free(skb). Entonces get_initial_state saldr\u00e1 y el skb liberado ser\u00e1 utilizado por el valor de retorno skb-\u0026gt;len, que es un error de uaf. Lo que es peor, el mismo problema va a\u00fan m\u00e1s all\u00e1: skb tambi\u00e9n se puede liberar en las llamadas notify_*_state_change -\u0026gt; notify_*_state a continuaci\u00f3n. Por lo tanto, ocurrieron 4 errores de uaf adicionales. Mi parche permite que las funciones llamadas al problema: notify_initial_state_done y notify_*_state_change devuelvan un c\u00f3digo de error si ocurren errores. Para que los c\u00f3digos de error se puedan propagar y los errores de uaf se puedan evitar, la v2 informa una advertencia de compilaci\u00f3n. Esta v3 corrigi\u00f3 esta advertencia y se compil\u00f3 correctamente en mi entorno local sin advertencias adicionales. v2: https://lore.kernel.org/patchwork/patch/1435218/"
          }
        ],
        "id": "CVE-2022-49085",
        "lastModified": "2026-06-17T05:17:02.263",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 5.9,
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "type": "Secondary"
            }
          ],
          "ssvcV203": [
            {
              "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "ssvcData": {
                "id": "CVE-2022-49085",
                "options": [
                  {
                    "exploitation": "none"
                  },
                  {
                    "automatable": "no"
                  },
                  {
                    "technicalImpact": "total"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-02-27T17:59:12.644580Z",
                "version": "2.0.3"
              }
            }
          ]
        },
        "published": "2025-02-26T07:00:45.833",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/0489700bfeb1e53eb2039c2291c67e71b0b40103"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/188fe6b26765edbad4055611c0f788b6870f4024"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/226e993c39405292781bfcf4b039a8db56aab362"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/594205b4936771a250f9d141e7e0fff21c3dd2d9"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/a972c768723359ec995579902473028fe3cd64b1"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/aadb22ba2f656581b2f733deb3a467c48cc618f6"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/b6a4055036eed1f5e239ce3d8b0db1ce38bba447"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/dcf6be17b5c53b741898d2223b23e66d682de300"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/de63e74da2333b4068bb79983e632db730fea97e"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-416"
              }
            ],
            "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
            "type": "Secondary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-09-13T07:55:14+00:00",
      "cve": "CVE-2022-49085",
      "id": "CVE-2022-49085",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: drbd: Fix five use after free bugs in get_initial_state",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49085.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-01T01:28:29Z",
      "cve": "CVE-2022-49085",
      "id": "CVE-2022-49085",
      "initial_release_date": "2025-02-27T03:12:31Z",
      "product_status:known_affected": "427",
      "product_status:known_not_affected": "200",
      "product_status:recommended": "319",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49085",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49085.json",
      "version": "70"
    },
    "vulnrichment": {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "LOCAL",
                  "availabilityImpact": "HIGH",
                  "baseScore": 7.8,
                  "baseSeverity": "HIGH",
                  "confidentialityImpact": "HIGH",
                  "integrityImpact": "HIGH",
                  "privilegesRequired": "LOW",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2022-49085",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-02-27T17:59:12.644580Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "problemTypes": [
              {
                "descriptions": [
                  {
                    "cweId": "CWE-416",
                    "description": "CWE-416 Use After Free",
                    "lang": "en",
                    "type": "CWE"
                  }
                ]
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-02-27T17:59:14.040Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "defaultStatus": "unaffected",
              "product": "Linux",
              "programFiles": [
                "drivers/block/drbd/drbd_int.h",
                "drivers/block/drbd/drbd_nl.c",
                "drivers/block/drbd/drbd_state.c",
                "drivers/block/drbd/drbd_state_change.h"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "lessThan": "0489700bfeb1e53eb2039c2291c67e71b0b40103",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "dcf6be17b5c53b741898d2223b23e66d682de300",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "188fe6b26765edbad4055611c0f788b6870f4024",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "b6a4055036eed1f5e239ce3d8b0db1ce38bba447",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "594205b4936771a250f9d141e7e0fff21c3dd2d9",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "a972c768723359ec995579902473028fe3cd64b1",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "de63e74da2333b4068bb79983e632db730fea97e",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "226e993c39405292781bfcf4b039a8db56aab362",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                },
                {
                  "lessThan": "aadb22ba2f656581b2f733deb3a467c48cc618f6",
                  "status": "affected",
                  "version": "a29728463b254ce81ecefdf20c1a02e01d9361da",
                  "versionType": "git"
                }
              ]
            },
            {
              "defaultStatus": "affected",
              "product": "Linux",
              "programFiles": [
                "drivers/block/drbd/drbd_int.h",
                "drivers/block/drbd/drbd_nl.c",
                "drivers/block/drbd/drbd_state.c",
                "drivers/block/drbd/drbd_state_change.h"
              ],
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "vendor": "Linux",
              "versions": [
                {
                  "status": "affected",
                  "version": "4.5"
                },
                {
                  "lessThan": "4.5",
                  "status": "unaffected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "4.9.*",
                  "status": "unaffected",
                  "version": "4.9.311",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "4.14.*",
                  "status": "unaffected",
                  "version": "4.14.276",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "4.19.*",
                  "status": "unaffected",
                  "version": "4.19.238",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.4.*",
                  "status": "unaffected",
                  "version": "5.4.189",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.10.*",
                  "status": "unaffected",
                  "version": "5.10.111",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.15.*",
                  "status": "unaffected",
                  "version": "5.15.34",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.16.*",
                  "status": "unaffected",
                  "version": "5.16.20",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "5.17.*",
                  "status": "unaffected",
                  "version": "5.17.3",
                  "versionType": "semver"
                },
                {
                  "lessThanOrEqual": "*",
                  "status": "unaffected",
                  "version": "5.18",
                  "versionType": "original_commit_for_fix"
                }
              ]
            }
          ],
          "cpeApplicability": [
            {
              "nodes": [
                {
                  "cpeMatch": [
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "4.9.311",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "4.14.276",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "4.19.238",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.4.189",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.10.111",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.15.34",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.16.20",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.17.3",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    },
                    {
                      "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                      "versionEndExcluding": "5.18",
                      "versionStartIncluding": "4.5",
                      "vulnerable": true
                    }
                  ],
                  "negate": false,
                  "operator": "OR"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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-\u003eargs[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-\u003elen, which is a uaf bug.\n\nWhat\u0027s worse, the same problem goes even further: skb can also be\nfreed in the notify_*_state_change -\u003e 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/"
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.8,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "scenarios": [
                {
                  "lang": "en",
                  "value": "AV:L - The vulnerable path is reached via the DRBD generic netlink dump command DRBD_ADM_GET_INITIAL_STATE (local netlink syscall), not via DRBD\u2019s replication network protocol or packet processing.\nAC:L - An attacker can invoke the dumpit path at will; the bug is a use-after-free on the dump skb after nlmsg_free(), and UAF exploitation does not depend on a race or other conditions outside attacker influence.\nPR:L - DRBD_ADM_GET_INITIAL_STATE is registered without GENL_ADMIN_PERM and does not go through drbd_adm_prepare\u2019s CAP_NET_ADMIN check, so an unprivileged local user can trigger it.\nUI:N - Exploitation requires only sending a netlink dump request; no victim action such as mounting a device or opening a file is needed.\nS:U - Impact is confined to the local kernel\u2019s security authority (standard local privilege-escalation/DoS via heap UAF), with no VM/IOMMU/sandbox boundary crossing.\nC:H - Freeing the dump skb and then continuing to use it (skb-\u003elen read, then netlink_dump send/free paths) is a heap use-after-free that can expose or be leveraged for arbitrary kernel memory disclosure.\nI:H - The same UAF/double-free of the netlink dump skb enables heap corruption and write primitives suitable for control-flow hijacking or arbitrary kernel writes.\nA:H - Use-after-free and double-free of the dump skb can cause kernel oops/panic or otherwise crash the system when the freed object is reused."
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-08-05T08:53:48.711Z",
            "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "shortName": "Linux"
          },
          "references": [
            {
              "url": "https://git.kernel.org/stable/c/0489700bfeb1e53eb2039c2291c67e71b0b40103"
            },
            {
              "url": "https://git.kernel.org/stable/c/dcf6be17b5c53b741898d2223b23e66d682de300"
            },
            {
              "url": "https://git.kernel.org/stable/c/188fe6b26765edbad4055611c0f788b6870f4024"
            },
            {
              "url": "https://git.kernel.org/stable/c/b6a4055036eed1f5e239ce3d8b0db1ce38bba447"
            },
            {
              "url": "https://git.kernel.org/stable/c/594205b4936771a250f9d141e7e0fff21c3dd2d9"
            },
            {
              "url": "https://git.kernel.org/stable/c/a972c768723359ec995579902473028fe3cd64b1"
            },
            {
              "url": "https://git.kernel.org/stable/c/de63e74da2333b4068bb79983e632db730fea97e"
            },
            {
              "url": "https://git.kernel.org/stable/c/226e993c39405292781bfcf4b039a8db56aab362"
            },
            {
              "url": "https://git.kernel.org/stable/c/aadb22ba2f656581b2f733deb3a467c48cc618f6"
            }
          ],
          "title": "drbd: Fix five use after free bugs in get_initial_state",
          "x_generator": {
            "engine": "bippy-1.2.0"
          }
        }
      },
      "cveMetadata": {
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "assignerShortName": "Linux",
        "cveId": "CVE-2022-49085",
        "datePublished": "2025-02-26T01:54:43.579Z",
        "dateReserved": "2025-02-26T01:49:39.248Z",
        "dateUpdated": "2026-08-05T08:53:48.711Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…