{"api_version":"1","generated_at":"2026-12-04T03:37:02+00:00","cve":"CVE-2026-138890","urls":{"html":"https://cve.report/CVE-2026-138890","api":"https://cve.report/api/cve/CVE-2026-138890.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138890","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138890"},"summary":{"title":"ocfs2: free replay slots in ocfs2_recovery_exit()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: free replay slots in ocfs2_recovery_exit()\n\nCommit ce2fcf1516d6 (\"ocfs2: fix memory leak in ocfs2_mount_volume()\")\nadded ocfs2_free_replay_slots() calls to the mount error paths\nout_dismount and out_check_volume to fix a leak of osb->replay_map. \nHowever these calls are unlocked while the bail path of the recovery\nthread, which is woken up by out_dismount right before the call, also\nfrees the replay slots under osb->recovery_lock.  Both sides can thus\nobserve a non-NULL osb->replay_map and trigger a double free.\n\nFix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit()\nafter ocfs2_recovery_disable(), which waits for a running recovery thread\nto exit under osb->recovery_lock, and drop the unlocked call sites.  Both\nocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call\nocfs2_recovery_exit(), so the replay slots are freed on every path.  Since\nsuper.c no longer references it, make ocfs2_free_replay_slots() static\nagain.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:46","updated_at":"2026-11-30 14:17:46"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe","name":"https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0","name":"https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174","name":"https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c","name":"https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885","name":"https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef","name":"https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda","name":"https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4","name":"https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138890","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138890","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2b7e59ed2e77136e9360274f8f0fc208a003e95c 153361baf48f9b9a15592cee490d4cad1519158c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8059e200259e9c483d715fc2df6340c227c3e196 565b4f2f115e375ad94815284ed7904f030badef git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 50ab0ca3aff4da26037113d69f5a756d8c1a92cd f621e88163ff80ef8bbf54949a08afa771f0edd4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 bd5ad94a4e0e80afc3d794c8a945ef7116656885 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 7edfee4c087cb1e10a52572ac2d402060661c174 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 407e148354ac954f70a1b54077b4a6ea0f669dbe git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 13c2a268eac34b044847cc3da9c1f85204a3deda git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected ce2fcf1516d674a174d9b34d1e1024d64de9fba3 1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7ef516888c4d30ae41bfcd79e7077d86d92794c5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4efe1d2db731bad19891e2fb9b338724b1f598cc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.10.163 5.10.275 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.15.107 5.15.226 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.1.2 6.1.193 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.4.229 5.5 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.0.16 6.1 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 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/ocfs2/journal.c","fs/ocfs2/journal.h","fs/ocfs2/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"153361baf48f9b9a15592cee490d4cad1519158c","status":"affected","version":"2b7e59ed2e77136e9360274f8f0fc208a003e95c","versionType":"git"},{"lessThan":"565b4f2f115e375ad94815284ed7904f030badef","status":"affected","version":"8059e200259e9c483d715fc2df6340c227c3e196","versionType":"git"},{"lessThan":"f621e88163ff80ef8bbf54949a08afa771f0edd4","status":"affected","version":"50ab0ca3aff4da26037113d69f5a756d8c1a92cd","versionType":"git"},{"lessThan":"bd5ad94a4e0e80afc3d794c8a945ef7116656885","status":"affected","version":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","versionType":"git"},{"lessThan":"7edfee4c087cb1e10a52572ac2d402060661c174","status":"affected","version":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","versionType":"git"},{"lessThan":"407e148354ac954f70a1b54077b4a6ea0f669dbe","status":"affected","version":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","versionType":"git"},{"lessThan":"13c2a268eac34b044847cc3da9c1f85204a3deda","status":"affected","version":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","versionType":"git"},{"lessThan":"1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0","status":"affected","version":"ce2fcf1516d674a174d9b34d1e1024d64de9fba3","versionType":"git"},{"status":"affected","version":"7ef516888c4d30ae41bfcd79e7077d86d92794c5","versionType":"git"},{"status":"affected","version":"4efe1d2db731bad19891e2fb9b338724b1f598cc","versionType":"git"},{"lessThan":"5.10.275","status":"affected","version":"5.10.163","versionType":"semver"},{"lessThan":"5.15.226","status":"affected","version":"5.15.107","versionType":"semver"},{"lessThan":"6.1.193","status":"affected","version":"6.1.2","versionType":"semver"},{"lessThan":"5.5","status":"affected","version":"5.4.229","versionType":"semver"},{"lessThan":"6.1","status":"affected","version":"6.0.16","versionType":"semver"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["fs/ocfs2/journal.c","fs/ocfs2/journal.h","fs/ocfs2/super.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","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":"5.10.275","versionStartIncluding":"5.10.163","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.15.107","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"6.1.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.4.229","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: free replay slots in ocfs2_recovery_exit()\n\nCommit ce2fcf1516d6 (\"ocfs2: fix memory leak in ocfs2_mount_volume()\")\nadded ocfs2_free_replay_slots() calls to the mount error paths\nout_dismount and out_check_volume to fix a leak of osb->replay_map. \nHowever these calls are unlocked while the bail path of the recovery\nthread, which is woken up by out_dismount right before the call, also\nfrees the replay slots under osb->recovery_lock.  Both sides can thus\nobserve a non-NULL osb->replay_map and trigger a double free.\n\nFix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit()\nafter ocfs2_recovery_disable(), which waits for a running recovery thread\nto exit under osb->recovery_lock, and drop the unlocked call sites.  Both\nocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call\nocfs2_recovery_exit(), so the replay slots are freed on every path.  Since\nsuper.c no longer references it, make ocfs2_free_replay_slots() static\nagain."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:56.493Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/153361baf48f9b9a15592cee490d4cad1519158c"},{"url":"https://git.kernel.org/stable/c/565b4f2f115e375ad94815284ed7904f030badef"},{"url":"https://git.kernel.org/stable/c/f621e88163ff80ef8bbf54949a08afa771f0edd4"},{"url":"https://git.kernel.org/stable/c/bd5ad94a4e0e80afc3d794c8a945ef7116656885"},{"url":"https://git.kernel.org/stable/c/7edfee4c087cb1e10a52572ac2d402060661c174"},{"url":"https://git.kernel.org/stable/c/407e148354ac954f70a1b54077b4a6ea0f669dbe"},{"url":"https://git.kernel.org/stable/c/13c2a268eac34b044847cc3da9c1f85204a3deda"},{"url":"https://git.kernel.org/stable/c/1ddadc6d41c1a29fd8fad1891bdcd2956e08b7f0"}],"title":"ocfs2: free replay slots in ocfs2_recovery_exit()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138890","datePublished":"2026-11-30T13:25:56.493Z","dateReserved":"2026-11-30T13:22:15.901Z","dateUpdated":"2026-11-30T13:25:56.493Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:46","lastModifiedDate":"2026-11-30 14:17:46","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138890","Ordinal":"1","Title":"ocfs2: free replay slots in ocfs2_recovery_exit()","CVE":"CVE-2026-138890","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138890","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: free replay slots in ocfs2_recovery_exit()\n\nCommit ce2fcf1516d6 (\"ocfs2: fix memory leak in ocfs2_mount_volume()\")\nadded ocfs2_free_replay_slots() calls to the mount error paths\nout_dismount and out_check_volume to fix a leak of osb->replay_map. \nHowever these calls are unlocked while the bail path of the recovery\nthread, which is woken up by out_dismount right before the call, also\nfrees the replay slots under osb->recovery_lock.  Both sides can thus\nobserve a non-NULL osb->replay_map and trigger a double free.\n\nFix this by moving ocfs2_free_replay_slots() into ocfs2_recovery_exit()\nafter ocfs2_recovery_disable(), which waits for a running recovery thread\nto exit under osb->recovery_lock, and drop the unlocked call sites.  Both\nocfs2_dismount_volume() and the out_super path of ocfs2_fill_super() call\nocfs2_recovery_exit(), so the replay slots are freed on every path.  Since\nsuper.c no longer references it, make ocfs2_free_replay_slots() static\nagain.","Type":"Description","Title":"ocfs2: free replay slots in ocfs2_recovery_exit()"}]}}}