Menu

Star on GitHub · 3.2k

CVE-2024-42266

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: btrfs: make cow_file_range_inline() honor locked_page on error The btrfs buffered write path runs through __extent_writepage()…

Published Aug 17, 2024CWE-476EPSS 0.20%

Overview

CVE-2024-42266 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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:

btrfs: make cow_file_range_inline() honor locked_page on error

The btrfs buffered write path runs through __extent_writepage() which

has some tricky return value handling for writepage_delalloc().

Specifically, when that returns 1, we exit, but for other return values

we continue and end up calling btrfs_folio_end_all_writers(). If the

folio has been unlocked (note that we check the PageLocked bit at the

start of __extent_writepage()), this results in an assert panic like

this one from syzbot:

BTRFS: error (device loop0 state EAL) in free_log_tree:3267: errno=-5 IO failure

BTRFS warning (device loop0 state EAL): Skipping commit of aborted transaction.

BTRFS: error (device loop0 state EAL) in cleanup_transaction:2018: errno=-5 IO failure

assertion failed: folio_test_locked(folio), in fs/btrfs/subpage.c:871

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

kernel BUG at fs/btrfs/subpage.c:871!

Oops: invalid opcode: 0

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-42266?

CVE-2024-42266 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-42266?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. 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-42266?

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-42266?

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

View all