{"id":"CVE-2026-46288","aliases":["CVE-2026-46288"],"related":[],"kind":"vulnerability","state":"published","title":"of: unittest: fix use-after-free in of_unittest_changeset()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: unittest: fix use-after-free in of_unittest_changeset()\n\nThe variable 'parent' is assigned the value of 'nchangeset' earlier in the\nfunction, meaning both point to the same struct device_node. The call to\nof_node_put(nchangeset) can decrement the reference count to zero and\nfree the node if there are no other holders. After that, the code still\nuses 'parent' to check for the presence of a property and to read a\nstring property, leading to a use-after-free.\n\nFix this by moving the of_node_put() call after the last access to\n'parent', avoiding the UAF.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nof: unittest: fix use-after-free in of_unittest_changeset()\n\nThe variable 'parent' is assigned the value of 'nchangeset' earlier in the\nfunction, meaning both point to the same struct device_node. The call to\nof_node_put(nchangeset) can decrement the reference count to zero and\nfree the node if there are no other holders. After that, the code still\nuses 'parent' to check for the presence of a property and to read a\nstring property, leading to a use-after-free.\n\nFix this by moving the of_node_put() call after the last access to\n'parent', avoiding the UAF.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nof: unittest: corregir uso después de liberación en of_unittest_changeset()\n\nLa variable 'parent' se le asigna el valor de 'nchangeset' anteriormente en la función, lo que significa que ambos apuntan a la misma estructura device_node. La llamada a of_node_put(nchangeset) puede decrementar el contador de referencias a cero y liberar el nodo si no hay otros poseedores. Después de eso, el código todavía usa 'parent' para verificar la presencia de una propiedad y para leer una propiedad de cadena, lo que lleva a un uso después de liberación.\n\nSolucione esto moviendo la llamada a of_node_put() después del último acceso a 'parent', evitando el UAF.","source":"nvd"}],"published":"2026-06-08T15:41:31.868Z","modified":"2026-08-05T12:31:02.134Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"1c668ea65506e67ce2eae07b69bb09fcdd86e309","fixed":"37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1","status":"affected"},{"type":"git","introduced":"1c668ea65506e67ce2eae07b69bb09fcdd86e309","fixed":"7f0f0926f3010b10cff5e93446258f971e42f2fd","status":"affected"},{"type":"git","introduced":"1c668ea65506e67ce2eae07b69bb09fcdd86e309","fixed":"6fdad20b7975bdc32e85b45f8f7c640f6687b81f","status":"affected"},{"type":"git","introduced":"1c668ea65506e67ce2eae07b69bb09fcdd86e309","fixed":"faecdd423c27f0d6090156a435ba9dbbac0eaddb","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.12","status":"unaffected"},{"type":"semver","introduced":"6.12.86","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.27","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.4","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.12","fixed":"6.12.86"},{"status":"affected","introduced":"6.13","fixed":"6.18.27"},{"status":"affected","introduced":"6.19","fixed":"7.0.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7f0f0926f3010b10cff5e93446258f971e42f2fd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6fdad20b7975bdc32e85b45f8f7c640f6687b81f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/faecdd423c27f0d6090156a435ba9dbbac0eaddb","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46288","url":"https://www.cve.org/CVERecord?id=CVE-2026-46288","licence":"CVE Terms of Use","modified":"2026-08-05T12:31:02.134Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46288","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46288","licence":"Public domain","modified":"2026-07-23T08:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:24.005Z","epss":{"score":0.0014,"percentile":0.03535,"date":"2026-12-01T12:00:22.000Z"}}