{
  "threat_severity" : "Low",
  "public_date" : "2025-04-01T00:00:00Z",
  "bugzilla" : {
    "description" : "kernel: hwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio",
    "id" : "2356641",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2356641"
  },
  "cvss3" : {
    "cvss3_base_score" : "3.3",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L",
    "status" : "verified"
  },
  "cwe" : "CWE-667",
  "details" : [ "In the Linux kernel, the following vulnerability has been resolved:\nhwpoison, memory_hotplug: lock folio before unmap hwpoisoned folio\nCommit b15c87263a69 (\"hwpoison, memory_hotplug: allow hwpoisoned pages to\nbe offlined) add page poison checks in do_migrate_range in order to make\noffline hwpoisoned page possible by introducing isolate_lru_page and\ntry_to_unmap for hwpoisoned page.  However folio lock must be held before\ncalling try_to_unmap.  Add it to fix this problem.\nWarning will be produced if folio is not locked during unmap:\n------------[ cut here ]------------\nkernel BUG at ./include/linux/swapops.h:400!\nInternal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP\nModules linked in:\nCPU: 4 UID: 0 PID: 411 Comm: bash Tainted: G        W          6.13.0-rc1-00016-g3c434c7ee82a-dirty #41\nTainted: [W]=WARN\nHardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015\npstate: 40400005 (nZcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)\npc : try_to_unmap_one+0xb08/0xd3c\nlr : try_to_unmap_one+0x3dc/0xd3c\nCall trace:\ntry_to_unmap_one+0xb08/0xd3c (P)\ntry_to_unmap_one+0x3dc/0xd3c (L)\nrmap_walk_anon+0xdc/0x1f8\nrmap_walk+0x3c/0x58\ntry_to_unmap+0x88/0x90\nunmap_poisoned_folio+0x30/0xa8\ndo_migrate_range+0x4a0/0x568\noffline_pages+0x5a4/0x670\nmemory_block_action+0x17c/0x374\nmemory_subsys_offline+0x3c/0x78\ndevice_offline+0xa4/0xd0\nstate_store+0x8c/0xf0\ndev_attr_store+0x18/0x2c\nsysfs_kf_write+0x44/0x54\nkernfs_fop_write_iter+0x118/0x1a8\nvfs_write+0x3a8/0x4bc\nksys_write+0x6c/0xf8\n__arm64_sys_write+0x1c/0x28\ninvoke_syscall+0x44/0x100\nel0_svc_common.constprop.0+0x40/0xe0\ndo_el0_svc+0x1c/0x28\nel0_svc+0x30/0xd0\nel0t_64_sync_handler+0xc8/0xcc\nel0t_64_sync+0x198/0x19c\nCode: f9407be0 b5fff320 d4210000 17ffff97 (d4210000)\n---[ end trace 0000000000000000 ]---" ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2025-11-11T00:00:00Z",
    "advisory" : "RHSA-2025:20095",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.1",
    "package" : "kernel-0:6.12.0-124.8.1.el10_1"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Not affected",
    "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" : "Out of support scope",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "fix_state" : "Out of support scope",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "fix_state" : "Not affected",
    "package_name" : "kernel-rt",
    "cpe" : "cpe:/o:redhat:enterprise_linux:9"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2025-21931\nhttps://nvd.nist.gov/vuln/detail/CVE-2025-21931\nhttps://lore.kernel.org/linux-cve-announce/2025040133-CVE-2025-21931-3d56@gregkh/T" ],
  "name" : "CVE-2025-21931",
  "csaw" : false
}