{
  "threat_severity" : "Moderate",
  "public_date" : "2025-10-01T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: mm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()",
    "id" : "2400592",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2400592"
  },
  "cvss3" : {
    "cvss3_base_score" : "6.2",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
    "status" : "draft"
  },
  "cwe" : "CWE-833",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nmm/vmalloc, mm/kasan: respect gfp mask in kasan_populate_vmalloc()\nkasan_populate_vmalloc() and its helpers ignore the caller's gfp_mask and\nalways allocate memory using the hardcoded GFP_KERNEL flag.  This makes\nthem inconsistent with vmalloc(), which was recently extended to support\nGFP_NOFS and GFP_NOIO allocations.\nPage table allocations performed during shadow population also ignore the\nexternal gfp_mask.  To preserve the intended semantics of GFP_NOFS and\nGFP_NOIO, wrap the apply_to_page_range() calls into the appropriate\nmemalloc scope.\nxfs calls vmalloc with GFP_NOFS, so this bug could lead to deadlock.\nThere was a report here\nhttps://lkml.kernel.org/r/686ea951.050a0220.385921.0016.GAE@google.com\nThis patch:\n- Extends kasan_populate_vmalloc() and helpers to take gfp_mask;\n- Passes gfp_mask down to alloc_pages_bulk() and __get_free_page();\n- Enforces GFP_NOFS/NOIO semantics with memalloc_*_save()/restore()\naround apply_to_page_range();\n- Updates vmalloc.c and percpu allocator call sites accordingly." ],
  "statement" : "KASAN’s vmalloc shadow population ignored the caller’s gfp_mask, allocating with GFP_KERNEL even in GFP_NOFS/NOIO contexts. This could trigger filesystem/block reclaim and re-entrancy, leading to deadlocks under load (e.g., XFS calling vmalloc(GFP_NOFS)).",
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Fix deferred",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2025-39910\nhttps://nvd.nist.gov/vuln/detail/CVE-2025-39910\nhttps://lore.kernel.org/linux-cve-announce/2025100110-CVE-2025-39910-568a@gregkh/T" ],
  "name" : "CVE-2025-39910",
  "csaw" : false
}