{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "e1bf79628453e6afac81ffa57f4f40f28e5512ff"
            },
            {
              "fixed": "7563d6969fe7fb497eeafc0e71d27f5364ab7b14"
            },
            {
              "fixed": "aa6439028dc39230e62917ba0a7dafdc103564cf"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.2.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139135.json"
  },
  "details": "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-\u003ei_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, \u0026iov, 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.",
  "id": "CVE-2026-139135",
  "modified": "2026-12-01T20:45:35.054746669Z",
  "published": "2026-11-30T13:31:54.364Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7563d6969fe7fb497eeafc0e71d27f5364ab7b14"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/aa6439028dc39230e62917ba0a7dafdc103564cf"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139135.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139135"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "writeback: don't kick a missing wb for dontcache writes"
}