{"api_version":"1","generated_at":"2026-11-30T18:56:39+00:00","cve":"CVE-2026-139234","urls":{"html":"https://cve.report/CVE-2026-139234","api":"https://cve.report/api/cve/CVE-2026-139234.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139234","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139234"},"summary":{"title":"exfat: fix used_clusters accounting during cluster allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix used_clusters accounting during cluster allocation\n\nIn the current exfat_alloc_cluster(), p_chain->size is incremented as\neach cluster is allocated so that the partially allocated chain can\nbe freed by __exfat_free_cluster() on the error path.\n\nHowever, sbi->used_clusters is still updated only after all clusters\nhave been allocated, while __exfat_free_cluster() unconditionally\nsubtracts the number of freed clusters from sbi->used_clusters.\nTherefore, when allocation fails partway through, the partially\nallocated clusters are subtracted from sbi->used_clusters even\nthough they were never added to it. This corrupts the free-space\naccounting and can cause sbi->used_clusters to underflow.\n\nIncrement sbi->used_clusters together with p_chain->size as each\ncluster is allocated. This keeps the accounting consistent with\n__exfat_free_cluster() on both the success and error paths.\n\nThis issue is caught by generic/476 with 256k cluster size:\n\n    Ran: generic/476\n    Failures: generic/476\n    Failed 1 of 1 tests\n\n    *** fsck.exfat output ***\n    ERROR: <path>: more clusters are allocated. truncate to N bytes\n    ...\n    /dev/vdc: corrupted. directories 331, files 526\n    /dev/vdc: files corrupted 9, files fixed 0\n    *** end fsck.exfat output ***","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:45","updated_at":"2026-11-30 14:18:45"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/8dd879d08328fdf47a29700b89015a8dca53aefd","name":"https://git.kernel.org/stable/c/8dd879d08328fdf47a29700b89015a8dca53aefd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b0825472aeb9deb458296071c81d6396b0d20677","name":"https://git.kernel.org/stable/c/b0825472aeb9deb458296071c81d6396b0d20677","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fabe14fd8555ae8bc5933df390e548d77e7336fd","name":"https://git.kernel.org/stable/c/fabe14fd8555ae8bc5933df390e548d77e7336fd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cb9dbf8a4e34b4fdf311598835ab4d76ed7e07c1","name":"https://git.kernel.org/stable/c/cb9dbf8a4e34b4fdf311598835ab4d76ed7e07c1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139234","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139234","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27 b0825472aeb9deb458296071c81d6396b0d20677 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27 8dd879d08328fdf47a29700b89015a8dca53aefd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27 fabe14fd8555ae8bc5933df390e548d77e7336fd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27 cb9dbf8a4e34b4fdf311598835ab4d76ed7e07c1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.120 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* 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/exfat/fatent.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"b0825472aeb9deb458296071c81d6396b0d20677","status":"affected","version":"d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27","versionType":"git"},{"lessThan":"8dd879d08328fdf47a29700b89015a8dca53aefd","status":"affected","version":"d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27","versionType":"git"},{"lessThan":"fabe14fd8555ae8bc5933df390e548d77e7336fd","status":"affected","version":"d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27","versionType":"git"},{"lessThan":"cb9dbf8a4e34b4fdf311598835ab4d76ed7e07c1","status":"affected","version":"d5c514b6a0c0b77ed7e5ef2484e8b20eb09c5f27","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/exfat/fatent.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.3"},{"lessThan":"6.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.120","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","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":"6.12.120","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix used_clusters accounting during cluster allocation\n\nIn the current exfat_alloc_cluster(), p_chain->size is incremented as\neach cluster is allocated so that the partially allocated chain can\nbe freed by __exfat_free_cluster() on the error path.\n\nHowever, sbi->used_clusters is still updated only after all clusters\nhave been allocated, while __exfat_free_cluster() unconditionally\nsubtracts the number of freed clusters from sbi->used_clusters.\nTherefore, when allocation fails partway through, the partially\nallocated clusters are subtracted from sbi->used_clusters even\nthough they were never added to it. This corrupts the free-space\naccounting and can cause sbi->used_clusters to underflow.\n\nIncrement sbi->used_clusters together with p_chain->size as each\ncluster is allocated. This keeps the accounting consistent with\n__exfat_free_cluster() on both the success and error paths.\n\nThis issue is caught by generic/476 with 256k cluster size:\n\n    Ran: generic/476\n    Failures: generic/476\n    Failed 1 of 1 tests\n\n    *** fsck.exfat output ***\n    ERROR: <path>: more clusters are allocated. truncate to N bytes\n    ...\n    /dev/vdc: corrupted. directories 331, files 526\n    /dev/vdc: files corrupted 9, files fixed 0\n    *** end fsck.exfat output ***"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:51.780Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/b0825472aeb9deb458296071c81d6396b0d20677"},{"url":"https://git.kernel.org/stable/c/8dd879d08328fdf47a29700b89015a8dca53aefd"},{"url":"https://git.kernel.org/stable/c/fabe14fd8555ae8bc5933df390e548d77e7336fd"},{"url":"https://git.kernel.org/stable/c/cb9dbf8a4e34b4fdf311598835ab4d76ed7e07c1"}],"title":"exfat: fix used_clusters accounting during cluster allocation","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139234","datePublished":"2026-11-30T13:32:51.780Z","dateReserved":"2026-11-30T13:22:15.922Z","dateUpdated":"2026-11-30T13:32:51.780Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:45","lastModifiedDate":"2026-11-30 14:18:45","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139234","Ordinal":"1","Title":"exfat: fix used_clusters accounting during cluster allocation","CVE":"CVE-2026-139234","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139234","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nexfat: fix used_clusters accounting during cluster allocation\n\nIn the current exfat_alloc_cluster(), p_chain->size is incremented as\neach cluster is allocated so that the partially allocated chain can\nbe freed by __exfat_free_cluster() on the error path.\n\nHowever, sbi->used_clusters is still updated only after all clusters\nhave been allocated, while __exfat_free_cluster() unconditionally\nsubtracts the number of freed clusters from sbi->used_clusters.\nTherefore, when allocation fails partway through, the partially\nallocated clusters are subtracted from sbi->used_clusters even\nthough they were never added to it. This corrupts the free-space\naccounting and can cause sbi->used_clusters to underflow.\n\nIncrement sbi->used_clusters together with p_chain->size as each\ncluster is allocated. This keeps the accounting consistent with\n__exfat_free_cluster() on both the success and error paths.\n\nThis issue is caught by generic/476 with 256k cluster size:\n\n    Ran: generic/476\n    Failures: generic/476\n    Failed 1 of 1 tests\n\n    *** fsck.exfat output ***\n    ERROR: <path>: more clusters are allocated. truncate to N bytes\n    ...\n    /dev/vdc: corrupted. directories 331, files 526\n    /dev/vdc: files corrupted 9, files fixed 0\n    *** end fsck.exfat output ***","Type":"Description","Title":"exfat: fix used_clusters accounting during cluster allocation"}]}}}