CVE-2022-49770

ceph: avoid putting the realm twice when decoding snaps fails

HIGH
7.8
CVSS Score
Published: May 1, 2025 at 02:09 PM UTC
Updated: August 15, 2026 at 01:17 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.6%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.35 ≤ v < 4.19.2684.0 ≤ v < 4.19.2684.0 ≤ v < 5.10.1574.0 ≤ v < 5.15.814.0 ≤ v < 5.4.2264.0 ≤ v < 6.0.104.0 ≤ v < 6.14.20 ≤ v < 5.4.2265.11 ≤ v < 5.15.815.16 ≤ v < 6.0.105.5 ≤ v < 5.10.1572.6.342.6.34 rc22.6.34 rc32.6.34 rc42.6.34 rc52.6.34 rc62.6.34 rc76.1 rc16.1 rc26.1 rc36.1 rc46.1 rc5982d6011bc30a26e8a3d546e0e7fc7db2c255d85
Vendor states this is fixed in 044bc6d3c2c0e9090b0841e7b723875756534b45 (fixed)
Vendor states this is fixed in 274e4c79a3a2a24fba7cfe0e41113f1138785c37 (fixed)
Vendor states this is fixed in 2f6e2de3a5289004650118b61f138fe7c28e1905 (fixed)
Vendor states this is fixed in 51884d153f7ec85e18d607b2467820a90e0f4359 (fixed)
Vendor states this is fixed in cb7495fe957526555782ce0723f79ce92a6db22e (fixed)
Vendor states this is fixed in fd879c83e87735ab8f00ef7755752cf0cbae24b2 (fixed)
Vendor states this is fixed in 4.0 (unaffected)
Vendor states this is fixed in 4.19.268 (unaffected)
Vendor states this is fixed in 5.10.157 (unaffected)
Vendor states this is fixed in 5.15.81 (unaffected)
Vendor states this is fixed in 5.4.226 (unaffected)
Vendor states this is fixed in 6.0.10 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/044bc6d3c2c0e9090b0841e7b723875756534b45
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/274e4c79a3a2a24fba7cfe0e41113f1138785c37
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f6e2de3a5289004650118b61f138fe7c28e1905
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/51884d153f7ec85e18d607b2467820a90e0f4359
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cb7495fe957526555782ce0723f79ce92a6db22e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fd879c83e87735ab8f00ef7755752cf0cbae24b2

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card