{
  "cveId": "CVE-2021-47607",
  "url": "https://patchblox.com/security/cve/CVE-2021-47607",
  "summary": "CVE-2021-47607 is fixed in linux on 1 platform, first by DEBIAN-CVE-2021-47607, released June 19, 2024. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  bpf: Fix kernel address leakage in atomic cmpxch...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  bpf: Fix kernel address leakage in atomic cmpxchg\u0027s r0 aux reg  The implementation of BPF_CMPXCHG on a high level has the following parameters:    .-[old-val]                                          .-[new-val]   BPF_R0 = cmpxchg{32,64}(DST_REG \u002B insn-\u003Eoff, BPF_R0, SRC_REG)                           \u0060-[mem-loc]          \u0060-[old-val]  Given a BPF insn can only have two registers (dst, src), the R0 is fixed and used as an auxilliary register for input (old value) as well as output (returning old value from memory location). While the verifier performs a number of safety checks, it misses to reject unprivileged programs where R0 contains a pointer as old value.  Through brute-forcing it takes about ~16sec on my machine to leak a kernel pointer with BPF_CMPXCHG. The PoC is basically probing for kernel addresses by storing the guessed address into the map slot as a scalar, and using the map value pointer as R0 while SRC_REG has a canary value to detect a matching address.  Fix it by checking R0 for pointers, and reject if that\u0027s the case for unprivileged programs.",
  "published": "2024-06-19T15:15:55Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
  "epss": 0.00246,
  "epssPercentile": 0.15923,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "5.15.15-1",
      "fix": "DEBIAN-CVE-2021-47607",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47607",
      "released": "2024-06-19T15:15:55Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "5.15.15-1",
      "fix": "DEBIAN-CVE-2021-47607",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47607",
      "released": "2024-06-19T15:15:55Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "5.15.15-1",
      "fix": "DEBIAN-CVE-2021-47607",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2021-47607",
      "released": "2024-06-19T15:15:55Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}