Menu

Star on GitHub · 3.2k

CVE-2022-49075

8.1 · HIGH

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix qgroup reserve overflow the qgroup limit We use extent_changeset->bytes_changed in qgroup_reserve_data() to record h…

Published Feb 26, 2025CWE-190EPSS 0.67%

Overview

CVE-2022-49075 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 8.1 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix qgroup reserve overflow the qgroup limit

We use extent_changeset->bytes_changed in qgroup_reserve_data() to record

how many bytes we set for EXTENT_QGROUP_RESERVED state. Currently the

bytes_changed is set as "unsigned int", and it will overflow if we try to

fallocate a range larger than 4GiB. The result is we reserve less bytes

and eventually break the qgroup limit.

Unlike regular buffered/direct write, which we use one changeset for

each ordered extent, which can never be larger than 256M. For

fallocate, we use one changeset for the whole range, thus it no longer

respects the 256M per extent limit, and caused the problem.

The following example test script reproduces the problem:

$ cat qgroup-overflow.sh

#!/bin/bash

DEV=/dev/sdj

MNT=/mnt/sdj

mkfs.btrfs -f $DEV

mount $DEV $MNT

# Set qgroup limit to 2GiB.

btrfs quota enable $MNT

btrfs qgroup limit 2G $MNT

# Try to fallocate a 3Gi

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49075?

CVE-2022-49075 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 8.1 (HIGH).

How severe is CVE-2022-49075?

This vulnerability has a CVSS 3.1 base score of 8.1, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49075?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49075?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49075 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all