CVE-2026-98854

Source
https://cve.org/CVERecord?id=CVE-2026-98854
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98854.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98854
Downstream
Published
2026-10-18T15:51:06Z
Modified
2026-10-19T02:47:37Z
Summary
of/overlay: only treat a positive changeset id as registered
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98854.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
61b4de4e0b384f4a22c55c3bada604da49cec4e1
Fixed
c08a54df9d33dcd6ff089adc9434b2c008af3a39
Fixed
0d1525fdcd3355672b7485d61e55df6824ab5ad1
Fixed
c875407c34dadaef0599834ad9c815f4c9f50d15
Fixed
44081d708b5b885487bac792db78324b7b4c267d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98854.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
6.12.113
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.56
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.10

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98854.json"