{"api_version":"1","generated_at":"2026-12-03T02:50:15+00:00","cve":"CVE-2026-139135","urls":{"html":"https://cve.report/CVE-2026-139135","api":"https://cve.report/api/cve/CVE-2026-139135.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139135","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139135"},"summary":{"title":"writeback: don't kick a missing wb for dontcache writes","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:30","updated_at":"2026-11-30 14:18:30"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/aa6439028dc39230e62917ba0a7dafdc103564cf","name":"https://git.kernel.org/stable/c/aa6439028dc39230e62917ba0a7dafdc103564cf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7563d6969fe7fb497eeafc0e71d27f5364ab7b14","name":"https://git.kernel.org/stable/c/7563d6969fe7fb497eeafc0e71d27f5364ab7b14","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139135","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139135","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e1bf79628453e6afac81ffa57f4f40f28e5512ff 7563d6969fe7fb497eeafc0e71d27f5364ab7b14 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e1bf79628453e6afac81ffa57f4f40f28e5512ff aa6439028dc39230e62917ba0a7dafdc103564cf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["fs/fs-writeback.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7563d6969fe7fb497eeafc0e71d27f5364ab7b14","status":"affected","version":"e1bf79628453e6afac81ffa57f4f40f28e5512ff","versionType":"git"},{"lessThan":"aa6439028dc39230e62917ba0a7dafdc103564cf","status":"affected","version":"e1bf79628453e6afac81ffa57f4f40f28e5512ff","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/fs-writeback.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.2"},{"lessThan":"7.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:54.364Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139135","datePublished":"2026-11-30T13:31:54.364Z","dateReserved":"2026-11-30T13:22:15.916Z","dateUpdated":"2026-11-30T13:31:54.364Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:30","lastModifiedDate":"2026-11-30 14:18:30","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139135","Ordinal":"1","Title":"writeback: don't kick a missing wb for dontcache writes","CVE":"CVE-2026-139135","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139135","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"writeback: don't kick a missing wb for dontcache writes"}]}}}