CVE-2022-49738

7.1 HIGH

📋 TL;DR

This is a Linux kernel vulnerability in the F2FS filesystem garbage collection code where missing sanity checks on i_extra_isize values can lead to out-of-bounds memory reads. It affects systems using F2FS filesystem with vulnerable kernel versions, potentially allowing attackers to crash systems or leak kernel memory.

💻 Affected Systems

Products:
  • Linux kernel
Versions: Kernel versions with F2FS support before fixes were applied (specific versions in git commits provided)
Operating Systems: Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if F2FS filesystem is in use. Many systems use ext4 by default.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Kernel panic leading to system crash and denial of service, or potential information disclosure through kernel memory leaks.

🟠

Likely Case

System crash or instability when garbage collection triggers on corrupted F2FS filesystems.

🟢

If Mitigated

No impact if patched or F2FS not in use.

🌐 Internet-Facing: LOW - Requires local access or ability to trigger garbage collection on corrupted filesystems.
🏢 Internal Only: MEDIUM - Local users or processes could trigger the vulnerability on affected systems.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Requires ability to trigger garbage collection on corrupted F2FS filesystem. Discovered via syzbot fuzzing.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Multiple stable kernel versions with commit hashes provided in references

Vendor Advisory: https://git.kernel.org/stable/c/5b25035fb888cb2f78bf0b9c9f95b1dc54480d36

Restart Required: Yes

Instructions:

1. Update Linux kernel to patched version. 2. Check distribution-specific security advisories. 3. Reboot system after kernel update.

🔧 Temporary Workarounds

Disable F2FS

all

Avoid using F2FS filesystem if not required

# Check if F2FS is in use: findmnt -t f2fs
# Consider migrating to ext4 or other filesystems

🧯 If You Can't Patch

  • Avoid using F2FS filesystem on critical systems
  • Implement strict access controls to prevent local users from triggering garbage collection

🔍 How to Verify

Check if Vulnerable:

Check kernel version and if F2FS is mounted: uname -r && findmnt -t f2fs

Check Version:

uname -r

Verify Fix Applied:

Verify kernel version is after fixes: check git commit hashes in kernel source or distribution patch notes

📡 Detection & Monitoring

Log Indicators:

  • Kernel panic logs
  • KASAN reports of slab-out-of-bounds in f2fs_gc or is_alive functions
  • System crashes during writeback operations

Network Indicators:

  • None - local vulnerability

SIEM Query:

kernel: "KASAN: slab-out-of-bounds" AND "f2fs" OR kernel: "BUG: KASAN" AND "is_alive" OR "gc_data_segment"

🔗 References

📤 Share & Export