Skip to content
Heist/ feed
Back to feed
CriticalFix available

ceph: avoid putting the realm twice when decoding snaps fails

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: ceph: avoid putting the realm twice when decoding snaps fails When decoding the snaps fails it maybe leaving the 'first_realm' and 'realm' pointing to the same snaprealm memory. And then it'll put it twice and could cause random use-after-free, BUG_ON, etc issues.

Products
Kernel
Affected versions
Not specified
Fixed versions
4.19.268, 5.10.157, 5.15.81, 5.4.226, 6.0.10
CVEs
CVE-2022-49770
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 23:11 UTC · Revision 1

Source evidence

ceph: avoid putting the realm twice when decoding snaps fails

core-osv · Original source

Published 1 May 2025, 14:09 UTC

In the Linux kernel, the following vulnerability has been resolved: ceph: avoid putting the realm twice when decoding snaps fails When decoding the snaps fails it maybe leaving the 'first_realm' and 'realm' pointing to the same snaprealm memory. And then it'll put it twice and could cause random use-after-free, BUG_ON, etc issues.

osv:CVE-2022-49770

Kernel

Fixed versions: 4.19.268, 5.4.226, 5.10.157, 5.15.81, 6.0.10

Complete source record
{
  "id": "07a3e7dbbdead619d4007b3348b00e27146108c39fd17d5321e1e336fa682040",
  "url": "https://osv.dev/vulnerability/CVE-2022-49770",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ceph: avoid putting the realm twice when decoding snaps fails",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: ceph: avoid putting the realm twice when decoding snaps fails When decoding the snaps fails it maybe leaving the 'first_realm' and 'realm' pointing to the same snaprealm memory. And then it'll put it twice and could cause random use-after-free, BUG_ON, etc issues.",
    "evidence": "osv:CVE-2022-49770",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "4.19.268",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.4.226",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.81",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.0.10",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-49770",
      "aliases": [
        "CVE-2022-49770"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "982d6011bc30a26e8a3d546e0e7fc7db2c255d85"
                },
                {
                  "fixed": "274e4c79a3a2a24fba7cfe0e41113f1138785c37"
                },
                {
                  "fixed": "cb7495fe957526555782ce0723f79ce92a6db22e"
                },
                {
                  "fixed": "044bc6d3c2c0e9090b0841e7b723875756534b45"
                },
                {
                  "fixed": "2f6e2de3a5289004650118b61f138fe7c28e1905"
                },
                {
                  "fixed": "fd879c83e87735ab8f00ef7755752cf0cbae24b2"
                },
                {
                  "fixed": "51884d153f7ec85e18d607b2467820a90e0f4359"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49770.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.0.0"
                },
                {
                  "fixed": "4.19.268"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.20.0"
                },
                {
                  "fixed": "5.4.226"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.81"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.0.10"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49770.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:40.404537124Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/044bc6d3c2c0e9090b0841e7b723875756534b45",
        "https://git.kernel.org/stable/c/274e4c79a3a2a24fba7cfe0e41113f1138785c37",
        "https://git.kernel.org/stable/c/2f6e2de3a5289004650118b61f138fe7c28e1905",
        "https://git.kernel.org/stable/c/51884d153f7ec85e18d607b2467820a90e0f4359",
        "https://git.kernel.org/stable/c/cb7495fe957526555782ce0723f79ce92a6db22e",
        "https://git.kernel.org/stable/c/fd879c83e87735ab8f00ef7755752cf0cbae24b2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49770.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49770",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49770.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49770",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 507880,
  "published_at": "2025-05-01T14:09:08.173+00:00"
}