Menu

Star on GitHub · 3.3k

CVE-2024-56565

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to drop all discards after creating snapshot on lvm device Piergiorgio reported a bug in bugzilla as below: --------…

Published Dec 27, 2024EPSS 0.22%

Overview

CVE-2024-56565 is a medium-severity vulnerability. It was published on December 27, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

f2fs: fix to drop all discards after creating snapshot on lvm device

Piergiorgio reported a bug in bugzilla as below:

------------[ cut here ]------------

WARNING: CPU: 2 PID: 969 at fs/f2fs/segment.c:1330

RIP: 0010:__submit_discard_cmd+0x27d/0x400 [f2fs]

Call Trace:

__issue_discard_cmd+0x1ca/0x350 [f2fs]

issue_discard_thread+0x191/0x480 [f2fs]

kthread+0xcf/0x100

ret_from_fork+0x31/0x50

ret_from_fork_asm+0x1a/0x30

w/ below testcase, it can reproduce this bug quickly:

- pvcreate /dev/vdb

- vgcreate myvg1 /dev/vdb

- lvcreate -L 1024m -n mylv1 myvg1

- mount /dev/myvg1/mylv1 /mnt/f2fs

- dd if=/dev/zero of=/mnt/f2fs/file bs=1M count=20

- sync

- rm /mnt/f2fs/file

- sync

- lvcreate -L 1024m -s -n mylv1-snapshot /dev/myvg1/mylv1

- umount /mnt/f2fs

The root cause is: it will update discard_max_bytes of mounted lvm

device to zero after creating snapshot on this lvm device, then,

__submit_discard_cmd() will pass paramet

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-2024-56565?

CVE-2024-56565 is a medium-severity vulnerability. It was published on December 27, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-56565?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-56565?

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-2024-56565?

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

View all
LiveWatch live →