PT-2025-8640 · Linux+4 · Linux Kernel+4

Zhang Yi

·

Published

2022-06-18

·

Updated

2025-04-16

·

CVE-2022-49707

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to the fixed version
Description A NULL pointer issue has been identified in the Linux kernel when resizing a corrupt ext4 image with the resize inode feature disabled. This issue can be reproduced by creating an ext4 filesystem, disabling the resize inode feature, mounting the filesystem, and then resizing it. The problem occurs because the es->s reserved gdt blocks is not reduced to zero when the resize inode feature is cleared, leading to a call to reserve backup gdb() with an uninitialized resize inode. This results in a kernel NULL pointer dereference.
Recommendations For Linux kernel versions prior to the fixed version, consider applying the fix that adds a check in ext4 resize begin() to ensure that the es->s reserved gdt blocks is zero when the resize inode feature is disabled. As a temporary workaround, avoid disabling the resize inode feature when creating an ext4 filesystem to minimize the risk of exploitation.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-02207
CESA-2022_7683
CVE-2022-49707
OPENSUSE-SU-2025_1263-1
RHSA-2022:7683
RHSA-2022:8267
RHSA-2022_7683
RHSA-2022_8267
SUSE-SU-2025:1027-1
SUSE-SU-2025:1176-1
SUSE-SU-2025:1183-1
SUSE-SU-2025:1194-1
SUSE-SU-2025:1241-1
SUSE-SU-2025:1263-1
SUSE-SU-2025:1293-1
SUSE-SU-2025_1027-1
SUSE-SU-2025_1241-1
SUSE-SU-2025_1263-1
SUSE-SU-2025_1293-1

Affected Products

Astra Linux
Centos
Linux Kernel
Red Hat
Suse