cve.bz

CVE-2022-49075 linux linux kernel: Year 2038 problem, Y2K38, Y2038, Epochalypse

5.5 mediumEPSS 0.7%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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 3GiB file. This should fail. echo echo "Try to fallocate a 3GiB file..." fallocate -l 3G $MNT/3G.file # Try to fallocate a 5GiB file. echo echo "Try to fallocate a 5GiB file..." fallocate -l 5G $MNT/5G.file # See we break the qgroup limit. echo sync btrfs qgroup show -r $MNT umount $MNT When running the test: $ ./qgroup-overflow.sh (...) Try to fallocate a 3GiB file... fallocate: fallocate failed: Disk quota exceeded Try to fallocate a 5GiB file... qgroupid         rfer         excl     max_rfer --------         ----         ----     -------- 0/5           5.00GiB      5.00GiB      2.00GiB Since we have no control of how bytes_changed is used, it's better to set it to u64.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-49075 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-49075?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-49075?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-49075 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.13 and later

Fixed in

ProductRelease lineFixed in
Linux4.144.14.276
Linux4.194.19.238
Linux5.45.4.189
Linux5.105.10.111
Linux5.155.15.34
Linux5.165.16.20
Linux5.175.17.3
Linuxlater releases5.18

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux5.17.3-1DEBIAN-CVE-2022-49075
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux4.15.0-189.200UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-aws4.15.0-1137.148UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-aws-5.4, linux-gcp-5.45.4.0-1078.84~18.04.1UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-azure-4.154.15.0-1146.161UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-azure-5.45.4.0-1083.87~18.04.1UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-gcp-4.154.15.0-1131.147UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-hwe-5.45.4.0-117.132~18.04.1UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-ibm-5.45.4.0-1028.32~18.04.1UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-kvm4.15.0-1123.128UBUNTU-CVE-2022-49075
Ubuntu18.04:LTSlinux-oracle4.15.0-1102.113UBUNTU-CVE-2022-49075
43 more for Ubuntu in the JSON and on Ubuntu's page.
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Micro 5.5 and 2 morekernel-default-base5.14.21-150500.55.100.1.150500.6.47.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Live Patching 12 SP5kernel-default4.12.14-122.255.1SUSE-SU-2025:1293-1
SUSELinux Enterprise Live Patching 12 SP5kgraft-patch-SLE12-SP5_Update_671-8.5.1SUSE-SU-2025:1293-1
SUSELinux Enterprise Live Patching 15 SP5kernel-default5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Live Patching 15 SP5kernel-livepatch-SLE15-SP5_Update_251-150500.11.3.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Micro 5.5kernel-rt, kernel-source-rt5.14.21-150500.13.91.1SUSE-SU-2025:1176-1
SUSELinux Enterprise Micro 5.5kernel-source, kernel-default5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5kernel-syms, kernel-source, kernel-default4.12.14-122.255.1SUSE-SU-2025:1293-1
SUSELinux Enterprise Server 15 SP5-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.14.21-150500.55.100.1SUSE-SU-2025:1241-1
SUSELinux Enterprise Server for SAP Applications 15 SP5kernel-docs, kernel-syms, kernel-source and 2 more5.14.21-150500.55.100.1SUSE-SU-2025:1241-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability does not affect Red Hat Enterprise Linux as support for the Btrfs file system is not enabled or provided in supported enterprise kernel builds. The flaw stems from an integer overflow during space reservation when performing large preallocation operations exceeding four gigabytes on a quota-enabled Btrfs volume. Because Red Hat Enterprise Linux does not ship or support the Btrfs driver, systems running Red Hat kernels are not impacted.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-49075.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON