Menu

Star on GitHub · 3.2k

CVE-2025-40138

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid NULL pointer dereference in f2fs_check_quota_consistency() syzbot reported a f2fs bug as below: Oops: gen[…

Published Nov 12, 2025EPSS 0.20%

Overview

CVE-2025-40138 is a known-severity vulnerability. It was published on November 12, 2025.

Technical description

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

f2fs: fix to avoid NULL pointer dereference in f2fs_check_quota_consistency()

syzbot reported a f2fs bug as below:

Oops: gen[ 107.736417][ T5848] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN PTI

KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]

CPU: 1 UID: 0 PID: 5848 Comm: syz-executor263 Tainted: G W 6.17.0-rc1-syzkaller-00014-g0e39a731820a #0 PREEMPT_{RT,(full)}

RIP: 0010:strcmp+0x3c/0xc0 lib/string.c:284

Call Trace:

<TASK>

f2fs_check_quota_consistency fs/f2fs/super.c:1188 [inline]

f2fs_check_opt_consistency+0x1378/0x2c10 fs/f2fs/super.c:1436

__f2fs_remount fs/f2fs/super.c:2653 [inline]

f2fs_reconfigure+0x482/0x1770 fs/f2fs/super.c:5297

reconfigure_super+0x224/0x890 fs/super.c:1077

do_remount fs/namespace.c:3314 [inline]

path_mount+0xd18/0xfe0 fs/namespace.c:4112

do_mount fs/namespace.c:4133 [inline]

__d

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-2025-40138?

CVE-2025-40138 is a known-severity vulnerability. It was published on November 12, 2025.

How severe is CVE-2025-40138?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2025-40138?

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-2025-40138?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-40138 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.