Skip to content
Noroxi
NVD / CVE Program· CNA Linux

CVE-2024-40943: ocfs2: fix races between hole punching and AIO+DIO

Noroxi assessment

Priority: Monitor (action score 18/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 0.19% (FIRST EPSS).
  • Someone with local access to the system can trigger it. A low-privileged account is enough. No user action is required. Special conditions such as timing or configuration are required.
  • Fixed version: Linux Linux 050ce8af6838c71e872e982b50d3f1bec21da40e, 117b9c009b72a6c2ebfd23484354dfee2d9570d2, 38825ff9da91d2854dcf6d9ac320a7e641e10f25.
  • Severity is disputed: the assigning authority (CNA) scores it 7.8, NVD 4.7.
  • Mentioned 1 time in Turkish national cyber security advisories (siberguvenlik.gov.tr).

Low priority for now. Upgrade to Linux Linux 050ce8af6838c71e872e982b50d3f1bec21da40e, 117b9c009b72a6c2ebfd23484354dfee2d9570d2, 38825ff9da91d2854dcf6d9ac320a7e641e10f25 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix races between hole punching and AIO+DIO After commit "ocfs2: return real error code in ocfs2_dio_wr_get_block", fstests/generic/300 become from always failed to sometimes failed: ======================================================================== [ 473.293420 ] run fstests generic/300 [ 475.296983 ] JBD2: Ignoring recovery information on journal [ 475.302473 ] ocfs2: Mounting device (253,1) on (node local, slot 0) with ordered data mode. [ 494.290998 ] OCFS2: ERROR (device dm-1): ocfs2_change_extent_flag: Owner 5668 has an extent at cpos 78723 which can no longer be found [ 494.291609 ] On-disk corruption discovered. Please run fsck.ocfs2 once the filesystem is unmounted. [ 494.292018 ] OCFS2: File system is now read-only. [ 494.292224 ] (kworker/19:11,2628,19):ocfs2_mark_extent_written:5272 ERROR: status = -30 [ 494.292602 ] (kworker/19:11,2628,19):ocfs2_dio_end_io_write:2374 ERROR: status = -3 fio: io_u error on file /mnt/scratch/racer: Read-only file system: write offset=460849152, buflen=131072 ========================================================================= In __blockdev_direct_IO, ocfs2_dio_wr_get_block is called to add unwritten extents to a list. extents are also inserted into extent tree in ocfs2_write_begin_nolock. Then another thread call fallocate to puch a hole at one of the unwritten extent. The extent at cpos was removed by ocfs2_remove_extent(). At end io worker thread, ocfs2_search_extent_list found there is no such extent at the cpos. T1 T2 T3 inode lock ... insert extents ... inode unlock ocfs2_fallocate __ocfs2_change_file_space inode lock lock ip_alloc_sem ocfs2_remove_inode_range inode ocfs2_remove_btree_range ocfs2_remove_extent ^---remove the extent at cpos 78723 ... unlock ip_alloc_sem inode unlock ocfs2_dio_end_io ocfs2_dio_end_io_write lock ip_alloc_sem ocfs2_mark_extent_written ocfs2_change_extent_flag ocfs2_search_extent_list ^---failed to find extent ... unlock ip_alloc_sem In most filesystems, fallocate is not compatible with racing with AIO+DIO, so fix it by adding to wait for all dio before fallocate/punch_hole like ext4.

MediumCVSS 4.7 · v3.1—No exploit Fix available
Published
Jul 12, 2024
Updated
Aug 5, 2026
EPSS
0.1% · 9th percentile

Report tools

JSON

Action score

18

Monitor

Low priority for now.

CVSS
18 / 40 · 4.7 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 0.1%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
4.7
CNA · Linux
7.8
3.1 point gap

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-40943

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
linuxlinux kernel

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • linux linux kernel2.6.23 and later · before 4.19.317
  • linux linux kernel4.20 and later · before 5.4.279
  • linux linux kernel5.5 and later · before 5.10.221
  • linux linux kernel5.11 and later · before 5.15.162
  • linux linux kernel5.16 and later · before 6.1.95
  • linux linux kernel6.2 and later · before 6.6.35
  • linux linux kernel6.7 and later · before 6.9.6

Versions reported by the vendor

Affected version ranges reported by the assigning authority (Linux). Independent of NVD's CPE analysis and usually ahead of it.

  • Linux Linux

    • 2.6.23affected
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 3c26b5d21b1239e9c7fd31ba7d9b2d7bdbaa68d9affected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before e8e2db1adac47970a6a9225f3858e9aa0e86287faffected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 050ce8af6838c71e872e982b50d3f1bec21da40eaffected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 38825ff9da91d2854dcf6d9ac320a7e641e10f25affected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before ea042dc2bea19d72e37c298bf65a9c341ef3fff3affected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 3c361f313d696df72f9bccf058510e9ec737b9b1affected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 117b9c009b72a6c2ebfd23484354dfee2d9570d2affected · git
    • b25801038da5823bba1b5440a57ca68afc51b6bd and later · before 952b023f06a24b2ad6ba67304c4c84d45bea2f18affected · git
    • before 2.6.23not affected · semver

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12linuxbefore 6.1.99-16.1.99-1
Debian:13linuxbefore 6.9.7-16.9.7-1

Other highest-scoring records for the same primary product.

  • CVE-2026-31431crypto: algif_aead - Revert to operating out-of-placeKEV
    90Now
  • CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV
    89Now
  • CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV
    85Now

Published before and after this one in the same product

  • ← EarlierCVE-2024-40939Jul 12, 2024 · net: wwan: iosm: Fix tainted pointer delete is case of region creation fail
    31Monitor
  • ← EarlierCVE-2024-40940Jul 12, 2024 · net/mlx5: Fix tainted pointer delete is case of flow rules creation fail
    31Monitor
  • Later →CVE-2024-40944Jul 12, 2024 · x86/kexec: Fix bug with call depth tracking
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
Linux Linux050ce8af6838c71e872e982b50d3f1bec21da40eVendor (CNA)
Linux Linux117b9c009b72a6c2ebfd23484354dfee2d9570d2Vendor (CNA)
Linux Linux38825ff9da91d2854dcf6d9ac320a7e641e10f25Vendor (CNA)
Linux Linux3c26b5d21b1239e9c7fd31ba7d9b2d7bdbaa68d9Vendor (CNA)
Linux Linux3c361f313d696df72f9bccf058510e9ec737b9b1Vendor (CNA)
Linux Linux952b023f06a24b2ad6ba67304c4c84d45bea2f18Vendor (CNA)
Linux Linuxe8e2db1adac47970a6a9225f3858e9aa0e86287fVendor (CNA)
Linux Linuxea042dc2bea19d72e37c298bf65a9c341ef3fff3Vendor (CNA)
debian:linux6.1.99-1 · Debian:12Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Someone with local access to the system can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • Special conditions such as timing or configuration are required.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Local
Attack complexity
High
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records