{
  "id": "CVE-2026-46121",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-46121",
  "published_at": "2026-05-28T09:35:36.292Z",
  "title": "mm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/damon/sysfs-schemes: protect memcg_path kfree() with damon_sysfs_lock\n\nPatch series \"mm/damon/sysfs-schemes: fix use-after-free for [memcg_]path\".\n\nReads of 'memcg_path' and 'path' files in DAMON sysfs interface could race\nwith their writes, results in use-after-free.  Fix those.\n\n\nThis patch (of 2):\n\ndamon_sysfs_scheme_filter-\u003emmecg_path can be read and written by users,\nvia DAMON sysfs memcg_path file.  It can also be indirectly read, for the\nparameters {on,off}line committing to DAMON.  The reads for parameters\ncommitting are protected by damon_sysfs_lock to avoid the sysfs files\nbeing destroyed while any of the parameters are being read.  But the\nuser-driven direct reads and writes are not protected by any lock, while\nthe write is deallocating the memcg_path-pointing buffer.  As a result,\nthe readers could read the already freed buffer (user-after-free).  Note\nthat the user-reads don't race when the same open file is used by the\nwriter, due to kernfs's open file locking.  Nonetheless, doing the reads\nand writes with separate open files would be common.  Fix it by protecting\nboth the user-direct reads and writes with damon_sysfs_lock.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 490a43d07f1663d827e802720d30cbc0494e4f81, \u003c b1e9f2d5870776347edef927f9bb3ea19b8e3abb",
          "\u003e= c5d5b0047b0c0f304608f3824139f7bd34c48413, \u003c c88802d0e8edd14b6cd2daf3000f99adbc4c85c5",
          "\u003e= 4f489fe6afb395dbc79840efa3c05440b760d883, \u003c eafd6f5372d29b0dd213799b92c2c9c7ad31d7da",
          "\u003e= 4f489fe6afb395dbc79840efa3c05440b760d883, \u003c baecc45ad60e621ef14d6c1e7f41ef36bbfdf910",
          "\u003e= 4f489fe6afb395dbc79840efa3c05440b760d883, \u003c 1e68eb96e8beb1abefd12dd22c5637795d8a877e",
          "4a158ac0538dd5695eeaa00aa0720d711f3e4ef1",
          "\u003e= 6.6.96, \u003c 6.6.140",
          "\u003e= 6.12.36, \u003c 6.12.88",
          "\u003e= 6.15.5, \u003c 6.16"
        ],
        "fixed_in": [
          "b1e9f2d5870776347edef927f9bb3ea19b8e3abb",
          "c88802d0e8edd14b6cd2daf3000f99adbc4c85c5",
          "eafd6f5372d29b0dd213799b92c2c9c7ad31d7da",
          "baecc45ad60e621ef14d6c1e7f41ef36bbfdf910",
          "1e68eb96e8beb1abefd12dd22c5637795d8a877e",
          "6.6.140",
          "6.12.88",
          "6.16"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.6.140",
          "6.12.88",
          "6.18.30",
          "7.0.7",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b1e9f2d5870776347edef927f9bb3ea19b8e3abb or c88802d0e8edd14b6cd2daf3000f99adbc4c85c5 or eafd6f5372d29b0dd213799b92c2c9c7ad31d7da or baecc45ad60e621ef14d6c1e7f41ef36bbfdf910 or 1e68eb96e8beb1abefd12dd22c5637795d8a877e or 6.6.140 or 6.12.88 or 6.16 or later.",
      "Upgrade Linux to 0 or 6.6.140 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
