# CVE-2026-98854: of/overlay: only treat a positive changeset id as registered

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-10-18T15:51:06.167Z
- Modified: 2026-10-30T13:21:30.980Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

of/overlay: only treat a positive changeset id as registered

of_overlay_fdt_apply() stores the idr_alloc() return value in
ovcs->id before checking it. On failure the stored id is negative,
free_overlay_changeset()'s "if (ovcs->id)" check passes, idr_remove()
is called with a negative id and list_del() runs on ovcs->ovcs_list,
which is not initialized until after the id allocation. An allocation
failure at that point dereferences NULL.

Make free_overlay_changeset() treat only a strict-positive id as
registered. The rest of the function already copes with a
partially-initialized ovcs, so the error path stays a plain
goto err_free_ovcs.

(As written by CVE List.)

## Affected

- Linux Linux: from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 7af5d66d0514b8f1d759d0e32b9d4c5d26263e4a; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 71065f3d6864a101b77e7af84566757c4df415a0; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before cc688475c56d34a2b584141f9544cbe23360080d; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before c08a54df9d33dcd6ff089adc9434b2c008af3a39; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 0d1525fdcd3355672b7485d61e55df6824ab5ad1; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before c875407c34dadaef0599834ad9c815f4c9f50d15; from 61b4de4e0b384f4a22c55c3bada604da49cec4e1 before 44081d708b5b885487bac792db78324b7b4c267d; 4.15 (not affected: before 4.15; from 5.15.224 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.18.56 up to 6.18.*; from 7.2.10 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/7af5d66d0514b8f1d759d0e32b9d4c5d26263e4a>
- <https://git.kernel.org/stable/c/71065f3d6864a101b77e7af84566757c4df415a0>
- <https://git.kernel.org/stable/c/cc688475c56d34a2b584141f9544cbe23360080d>
- <https://git.kernel.org/stable/c/c08a54df9d33dcd6ff089adc9434b2c008af3a39>
- <https://git.kernel.org/stable/c/0d1525fdcd3355672b7485d61e55df6824ab5ad1>
- <https://git.kernel.org/stable/c/c875407c34dadaef0599834ad9c815f4c9f50d15>
- <https://git.kernel.org/stable/c/44081d708b5b885487bac792db78324b7b4c267d>

## Sources

- CVE List: [CVE-2026-98854](https://www.cve.org/CVERecord?id=CVE-2026-98854), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-98854](https://nvd.nist.gov/vuln/detail/CVE-2026-98854), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-98854 · Whole record: https://cve.day/CVE-2026-98854.json · Rebuilt by cve.day 2026-11-25T22:59:45.327Z
