{"id":"CVE-2026-98854","aliases":["CVE-2026-98854"],"related":[],"kind":"vulnerability","state":"published","title":"of/overlay: only treat a positive changeset id as registered","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nof/overlay: only treat a positive changeset id as registered\n\nof_overlay_fdt_apply() stores the idr_alloc() return value in\novcs->id before checking it. On failure the stored id is negative,\nfree_overlay_changeset()'s \"if (ovcs->id)\" check passes, idr_remove()\nis called with a negative id and list_del() runs on ovcs->ovcs_list,\nwhich is not initialized until after the id allocation. An allocation\nfailure at that point dereferences NULL.\n\nMake free_overlay_changeset() treat only a strict-positive id as\nregistered. The rest of the function already copes with a\npartially-initialized ovcs, so the error path stays a plain\ngoto err_free_ovcs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nof/overlay: only treat a positive changeset id as registered\n\nof_overlay_fdt_apply() stores the idr_alloc() return value in\novcs->id before checking it. On failure the stored id is negative,\nfree_overlay_changeset()'s \"if (ovcs->id)\" check passes, idr_remove()\nis called with a negative id and list_del() runs on ovcs->ovcs_list,\nwhich is not initialized until after the id allocation. An allocation\nfailure at that point dereferences NULL.\n\nMake free_overlay_changeset() treat only a strict-positive id as\nregistered. The rest of the function already copes with a\npartially-initialized ovcs, so the error path stays a plain\ngoto err_free_ovcs.","source":"cvelist"}],"published":"2026-10-18T15:51:06.167Z","modified":"2026-10-30T13:21:30.980Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"7af5d66d0514b8f1d759d0e32b9d4c5d26263e4a","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"71065f3d6864a101b77e7af84566757c4df415a0","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"cc688475c56d34a2b584141f9544cbe23360080d","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"c08a54df9d33dcd6ff089adc9434b2c008af3a39","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"0d1525fdcd3355672b7485d61e55df6824ab5ad1","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"c875407c34dadaef0599834ad9c815f4c9f50d15","status":"affected"},{"type":"git","introduced":"61b4de4e0b384f4a22c55c3bada604da49cec4e1","fixed":"44081d708b5b885487bac792db78324b7b4c267d","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.15","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.113","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.56","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.10","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7af5d66d0514b8f1d759d0e32b9d4c5d26263e4a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71065f3d6864a101b77e7af84566757c4df415a0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc688475c56d34a2b584141f9544cbe23360080d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c08a54df9d33dcd6ff089adc9434b2c008af3a39","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d1525fdcd3355672b7485d61e55df6824ab5ad1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c875407c34dadaef0599834ad9c815f4c9f50d15","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/44081d708b5b885487bac792db78324b7b4c267d","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98854","url":"https://www.cve.org/CVERecord?id=CVE-2026-98854","licence":"CVE Terms of Use","modified":"2026-10-30T12:40:15.237Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98854","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98854","licence":"Public domain","modified":"2026-10-30T13:21:30.980Z"}],"updatedAt":"2026-11-25T22:59:45.327Z","epss":{"score":0.00161,"percentile":0.05541,"date":"2026-12-01T12:00:22.000Z"}}