Skip to content
Heist/ feed
Back to feed
HighFix available

of: unittest: fix use-after-free in of_unittest_changeset()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in of_unittest_changeset() The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct device_node. The call to of_node_put(nchangeset) can decrement the reference count to zero and free the node if there are no other holders. After that, the code still uses 'parent' to check for the presence of a property and to read a string property, leading to a use-after-free. Fix this by moving the of_node_put() call after the last access to 'parent', avoiding the UAF.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.86, 6.18.27, 7.0.4
CVEs
CVE-2026-46288
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:37 UTC · Revision 1

Source evidence

of: unittest: fix use-after-free in of_unittest_changeset()

core-osv · Original source

Published 8 Jun 2026, 15:41 UTC

In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in of_unittest_changeset() The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct device_node. The call to of_node_put(nchangeset) can decrement the reference count to zero and free the node if there are no other holders. After that, the code still uses 'parent' to check for the presence of a property and to read a string property, leading to a use-after-free. Fix this by moving the of_node_put() call after the last access to 'parent', avoiding the UAF.

osv:CVE-2026-46288

Kernel

Fixed versions: 6.12.86, 6.18.27, 7.0.4

Complete source record
{
  "id": "fc383d705f60e2da7fcf411242464fefb5e3bc8249fa004bc2927f2142798370",
  "url": "https://osv.dev/vulnerability/CVE-2026-46288",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "of: unittest: fix use-after-free in of_unittest_changeset()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: of: unittest: fix use-after-free in of_unittest_changeset() The variable 'parent' is assigned the value of 'nchangeset' earlier in the function, meaning both point to the same struct device_node. The call to of_node_put(nchangeset) can decrement the reference count to zero and free the node if there are no other holders. After that, the code still uses 'parent' to check for the presence of a property and to read a string property, leading to a use-after-free. Fix this by moving the of_node_put() call after the last access to 'parent', avoiding the UAF.",
    "evidence": "osv:CVE-2026-46288",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.86",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.27",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.0.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-46288",
      "aliases": [
        "CVE-2026-46288"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1c668ea65506e67ce2eae07b69bb09fcdd86e309"
                },
                {
                  "fixed": "37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1"
                },
                {
                  "fixed": "7f0f0926f3010b10cff5e93446258f971e42f2fd"
                },
                {
                  "fixed": "6fdad20b7975bdc32e85b45f8f7c640f6687b81f"
                },
                {
                  "fixed": "faecdd423c27f0d6090156a435ba9dbbac0eaddb"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46288.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.12.0"
                },
                {
                  "fixed": "6.12.86"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.27"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.0.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46288.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.163437208Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/37318d1a27c9cc5a70d3cd7e49e30ec86f2b8ca1",
        "https://git.kernel.org/stable/c/6fdad20b7975bdc32e85b45f8f7c640f6687b81f",
        "https://git.kernel.org/stable/c/7f0f0926f3010b10cff5e93446258f971e42f2fd",
        "https://git.kernel.org/stable/c/faecdd423c27f0d6090156a435ba9dbbac0eaddb",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46288.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-46288",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46288.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-46288",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494588,
  "published_at": "2026-06-08T15:41:31.868+00:00"
}