Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 98%

In the Linux kernel, the following vulnerability has been resolved: netfs: Fix write streaming disablement if fd open O_RDWR In… (CVE-2026-64158)

0
High
Published: 07/19/2026 (07/19/2026, 18:31:53 UTC)
Source: GCVE Database

Description

In the Linux kernel, the following vulnerability has been resolved: netfs: Fix write streaming disablement if fd open O_RDWR In netfs_perform_write(), "write streaming" (the caching of dirty data in dirty but !uptodate folios) is performed to avoid the need to read data that is just going to get immediately overwritten. However, this is/will be disabled in three circumstances: if the fd is open O_RDWR, if fscache is in use (as we need to round out the blocks for DIO) or if content encryption is enabled (again for rounding out purposes). The idea behind disabling it if the fd is open O_RDWR is that we'd need to flush the write-streaming page before we could read the data, particularly through mmap. But netfs now fills in the gaps if ->read_folio() is called on the page, so that is unnecessary. Further, this doesn't actually work if a separate fd is open for reading. Fix this by removing the check for O_RDWR, thereby allowing streaming writes even when we might read. This caused a number of problems with the generic/522 xfstest, but those are now fixed.

CVSS v3.1

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/19/2026, 19:42:06 UTC

Technical Analysis

The Linux kernel netfs subsystem performed write streaming to cache dirty data and avoid unnecessary reads. Previously, write streaming was disabled if the file descriptor was opened with O_RDWR, due to concerns about flushing pages before reads, especially via mmap. However, this disabling was unnecessary because netfs handles read gaps internally, and it did not work correctly if a separate file descriptor was open for reading. The vulnerability was fixed by removing the check that disabled write streaming for O_RDWR, restoring proper streaming behavior and fixing related filesystem test failures.

Potential Impact

The vulnerability caused improper disabling of write streaming in netfs when a file descriptor was opened with O_RDWR, potentially leading to data consistency and performance issues. The fix restores correct write streaming behavior, improving filesystem stability and correctness. There is no indication of direct security exploitation or data compromise from this issue.

Mitigation Recommendations

A fix has been applied in the Linux kernel to remove the disabling of write streaming for O_RDWR file descriptors in netfs. Users should update to the fixed kernel version once available. No additional mitigation actions are indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-74f7-4jjx-chgc
Osv Schema Version
1.4.0
Aliases
["CVE-2026-64158"]
Ecosystems
[]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a5d27a82a4a8d598912a583

Added to database: 07/19/2026, 19:38:16 UTC

Last enriched: 07/19/2026, 19:42:06 UTC

Last updated: 07/20/2026, 19:41:21 UTC

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses