{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9b46418c40fe910e6537618f9932a8be78a3dd6c"
            },
            {
              "fixed": "d4dfc65120fe73189b2b42143ed6ee8b8e93283a"
            },
            {
              "fixed": "49b519ebdb95850f1e932aeb02ebd56e37fcf81f"
            },
            {
              "fixed": "0567d02ce0f555d2dd4834454e4fe81bd54a7764"
            },
            {
              "fixed": "dbc16179d423856a091cc63b88ec8b6ba4cde829"
            },
            {
              "fixed": "103a14a30f4e0c6da43016a52c2abc6e1f921e79"
            },
            {
              "fixed": "81f311ccfd77de3596e841af149dd06183a832ec"
            },
            {
              "fixed": "ac8661910ebee46daafa4be0b4da057fbe7d026b"
            },
            {
              "fixed": "f7585e1ce3418ec282485854b3d8d31c6a961e37"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "d658c127fc419ad62ae6a40d0548eeb63d16294c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "6805031556e1e702c2eafa838d93651abe33824f"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.4.49"
            },
            {
              "fixed": "5.5"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.7.6"
            },
            {
              "fixed": "5.8"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.8.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.118"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.63"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138976.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nfuse: don't drop destination page cache on a zero byte copy reply\n\n__fuse_copy_file_range() clears the destination page cache after the\nserver replies:\n\n\ttruncate_inode_pages_range(inode_out-\u003ei_mapping,\n\t\t\t\t   ALIGN_DOWN(pos_out, PAGE_SIZE),\n\t\t\t\t   ALIGN(pos_out + bytes_copied, PAGE_SIZE) - 1);\n\nA server may legitimately reply that it copied nothing, eg if the source\nfile turns out to be shorter than the size the kernel has cached for it.\n\nIf pos_out is 0 as well, the end of the range is ALIGN(0, PAGE_SIZE) - 1,\nwhich is -1. lend is a uoff_t and truncate_inode_pages_range() takes -1\nas its end of file sentinel, so rather than clearing nothing it drops\nevery folio in the destination mapping.\n\nThat is not only a cache drop. truncate_cleanup_folio() calls\nfolio_cancel_dirty(), and fuse_writeback_range() only wrote back\n[pos_out, pos_out + len - 1], so dirty data elsewhere in the destination\nfile is discarded without ever reaching the server.\n\nSkip the call when the server copied nothing, since there is nothing\nstale to clear in that case.",
  "id": "CVE-2026-138976",
  "modified": "2026-12-01T20:45:21.408715198Z",
  "published": "2026-11-30T13:26:43.599Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0567d02ce0f555d2dd4834454e4fe81bd54a7764"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/103a14a30f4e0c6da43016a52c2abc6e1f921e79"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/49b519ebdb95850f1e932aeb02ebd56e37fcf81f"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/81f311ccfd77de3596e841af149dd06183a832ec"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ac8661910ebee46daafa4be0b4da057fbe7d026b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d4dfc65120fe73189b2b42143ed6ee8b8e93283a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/dbc16179d423856a091cc63b88ec8b6ba4cde829"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f7585e1ce3418ec282485854b3d8d31c6a961e37"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138976.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138976"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "fuse: don't drop destination page cache on a zero byte copy reply"
}