{
  "id": "CVE-2026-53162",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-53162",
  "published_at": "2026-06-25T08:38:43.453Z",
  "title": "memcg: use round-robin victim selection in refill_stock",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "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\nmemcg: use round-robin victim selection in refill_stock\n\nHarry Yoo reported that get_random_u32_below() is not safe to call in the\nnmi context and memcg charge draining can happen in nmi context.\n\nMore specifically get_random_u32_below() is neither reentrant- nor\nNMI-safe: it acquires a per-cpu local_lock via local_lock_irqsave() on the\nbatched_entropy_u32 state.  An NMI that lands on a CPU mid-update of the\nChaCha batch state and recurses into the random subsystem would corrupt\nthat state.  The memcg_stock local_trylock prevents re-entry on the percpu\nstock itself, but cannot protect an unrelated subsystem's per-cpu lock.\n\nReplace the random pick with a per-cpu round-robin counter stored in\nmemcg_stock_pcp and serialized by the same local_trylock that already\nguards cached[] and nr_pages[].  No atomics, no random calls, no extra\nlocks needed.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= f735eebe55f8f61758fe014bd0b02ab50b059e4d, \u003c 89bd8215e25aa6999cc51696da418e0d422bc5e0",
          "\u003e= f735eebe55f8f61758fe014bd0b02ab50b059e4d, \u003c 00731bd7e18f182a32ca54d6b176eaa470b51ed7",
          "\u003e= f735eebe55f8f61758fe014bd0b02ab50b059e4d, \u003c c0cafe24d3f6534294c4b2bc2d47734ff7cbd313"
        ],
        "fixed_in": [
          "89bd8215e25aa6999cc51696da418e0d422bc5e0",
          "00731bd7e18f182a32ca54d6b176eaa470b51ed7",
          "c0cafe24d3f6534294c4b2bc2d47734ff7cbd313"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.18.36",
          "7.0.13",
          "7.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 89bd8215e25aa6999cc51696da418e0d422bc5e0 or 00731bd7e18f182a32ca54d6b176eaa470b51ed7 or c0cafe24d3f6534294c4b2bc2d47734ff7cbd313 or later.",
      "Upgrade Linux to 0 or 6.18.36 or 7.0.13 or 7.1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
