CVE-2026-139135
publishedwriteback: don't kick a missing wb for dontcache writes
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe1bf79628453e6afac81ffa57f4f40f28e5512ff to < 7563d6969fe7fb497eeafc0e71d27f5364ab7b14 · e1bf79628453e6afac81ffa57f4f40f28e5512ff to < aa6439028dc39230e62917ba0a7dafdc103564cf · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: writeback: don't kick a missing wb for dontcache writes With CONFIG_CGROUP_WRITEBACK, inode->i_wb stays NULL until the inode is dirtied for the first time (folio_account_dirtied(), __mark_inode_dirty() or wbc_attach_fdatawrite_inode() attach it). generic_write_sync() calls filemap_dontcache_kick_writeback() for every IOCB_DONTCACHE write, including O_DIRECT ones, which never dirty the page cache. The function then passes the NULL returned by unlocked_inode_to_wb_begin() to wb_has_dirty_io(): fd = open("/dev/ram0", O_WRONLY | O_DIRECT); pwritev2(fd, &iov, 1, 0, RWF_DONTCACHE); BUG: KASAN: null-ptr-deref in filemap_dontcache_kick_writeback+0xec Oops: general protection fault, probably for non-canonical address RIP: 0010:filemap_dontcache_kick_writeback+0xfd/0x7a0 The task dies inside rcu_read_lock(). blkdev_write_iter() gets there for any block device whose page cache has not been dirtied yet. nfs_file_direct_write() calls generic_write_sync() the same way. An inode without a wb has never had dirty pages, so there is nothing to flush: skip the kick.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e1bf79628453e6afac81ffa57f4f40f28e5512ff to < 7563d6969fe7fb497eeafc0e71d27f5364ab7b14 (affected · git)e1bf79628453e6afac81ffa57f4f40f28e5512ff to < aa6439028dc39230e62917ba0a7dafdc103564cf (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.2 (affected)0 to < 7.2 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
writeback: don't kick a missing wb for dontcache writes
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4090a7fff899a0c447ccef42e76a73c5836765bb4eae6d713305b766981e8909
- Ingested
- 30 Nov 2026, 13:42:22 UTC
- Source record
- Official CVE record