{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139135","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.916Z","datePublished":"2026-11-30T13:31:54.364Z","dateUpdated":"2026-11-30T13:31:54.364Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:31:54.364Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwriteback: don't kick a missing wb for dontcache writes\n\nWith CONFIG_CGROUP_WRITEBACK, inode->i_wb stays NULL until the inode is\ndirtied for the first time (folio_account_dirtied(), __mark_inode_dirty()\nor wbc_attach_fdatawrite_inode() attach it).  generic_write_sync() calls\nfilemap_dontcache_kick_writeback() for every IOCB_DONTCACHE write,\nincluding O_DIRECT ones, which never dirty the page cache.  The function\nthen passes the NULL returned by unlocked_inode_to_wb_begin() to\nwb_has_dirty_io():\n\n  fd = open(\"/dev/ram0\", O_WRONLY | O_DIRECT);\n  pwritev2(fd, &iov, 1, 0, RWF_DONTCACHE);\n\n  BUG: KASAN: null-ptr-deref in filemap_dontcache_kick_writeback+0xec\n  Oops: general protection fault, probably for non-canonical address\n  RIP: 0010:filemap_dontcache_kick_writeback+0xfd/0x7a0\n\nThe task dies inside rcu_read_lock().  blkdev_write_iter() gets there for\nany block device whose page cache has not been dirtied yet.\nnfs_file_direct_write() calls generic_write_sync() the same way.\n\nAn inode without a wb has never had dirty pages, so there is nothing to\nflush: skip the kick."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs-writeback.c"],"versions":[{"version":"e1bf79628453e6afac81ffa57f4f40f28e5512ff","lessThan":"7563d6969fe7fb497eeafc0e71d27f5364ab7b14","status":"affected","versionType":"git"},{"version":"e1bf79628453e6afac81ffa57f4f40f28e5512ff","lessThan":"aa6439028dc39230e62917ba0a7dafdc103564cf","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs-writeback.c"],"versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/7563d6969fe7fb497eeafc0e71d27f5364ab7b14"},{"url":"https://git.kernel.org/stable/c/aa6439028dc39230e62917ba0a7dafdc103564cf"}],"title":"writeback: don't kick a missing wb for dontcache writes","x_generator":{"engine":"bippy-1.2.0"}}}}