{
  "id": "CVE-2025-38702",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38702",
  "published_at": "2025-09-04T15:32:53.99Z",
  "title": "fbdev: fix potential buffer overflow in do_register_framebuffer()",
  "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\nfbdev: fix potential buffer overflow in do_register_framebuffer()\n\nThe current implementation may lead to buffer overflow when:\n1.  Unregistration creates NULL gaps in registered_fb[]\n2.  All array slots become occupied despite num_registered_fb \u003c FB_MAX\n3.  The registration loop exceeds array bounds\n\nAdd boundary check to prevent registered_fb[FB_MAX] access.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:2.6.12:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 5c3f5a25c62230b7965804ce7a2e9305c3ca3961",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c cbe740de32bb0fb7a5213731ff5f26ea6718fca3",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 806f85bdd3a60187c21437fc51baace11f659f35",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 2828a433c7d7a05b6f27c8148502095101dd0b09",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399",
          "\u003e= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \u003c 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05"
        ],
        "fixed_in": [
          "5c3f5a25c62230b7965804ce7a2e9305c3ca3961",
          "cbe740de32bb0fb7a5213731ff5f26ea6718fca3",
          "806f85bdd3a60187c21437fc51baace11f659f35",
          "2828a433c7d7a05b6f27c8148502095101dd0b09",
          "248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399",
          "523b84dc7ccea9c4d79126d6ed1cf9033cf83b05"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.12"
        ],
        "fixed_in": [
          "0",
          "6.1.149",
          "6.6.103",
          "6.12.43",
          "6.15.11",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 5c3f5a25c62230b7965804ce7a2e9305c3ca3961 or cbe740de32bb0fb7a5213731ff5f26ea6718fca3 or 806f85bdd3a60187c21437fc51baace11f659f35 or 2828a433c7d7a05b6f27c8148502095101dd0b09 or 248b2aab9b2af5ecf89d9d7955a2ff20c4b4a399 or 523b84dc7ccea9c4d79126d6ed1cf9033cf83b05 or later.",
      "Upgrade Linux to 0 or 6.1.149 or 6.6.103 or 6.12.43 or 6.15.11 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
