{
  "cveId": "CVE-2022-50517",
  "url": "https://patchblox.com/security/cve/CVE-2022-50517",
  "summary": "CVE-2022-50517 is fixed in linux on 1 platform, first by DEBIAN-CVE-2022-50517, released October 7, 2025. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  mm/huge_memory: do not clobber swp_entry_t durin...",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  mm/huge_memory: do not clobber swp_entry_t during THP split  The following has been observed when running stressng mmap since commit b653db77350c (\u0022mm: Clear page-\u003Eprivate when splitting or migrating a page\u0022)     watchdog: BUG: soft lockup - CPU#75 stuck for 26s! [stress-ng:9546]    CPU: 75 PID: 9546 Comm: stress-ng Tainted: G            E      6.0.0-revert-b653db77-fix\u002B #29 0357d79b60fb09775f678e4f3f64ef0579ad1374    Hardware name: SGI.COM C2112-4GP3/X10DRT-P-Series, BIOS 2.0a 05/09/2016    RIP: 0010:xas_descend\u002B0x28/0x80    Code: cc cc 0f b6 0e 48 8b 57 08 48 d3 ea 83 e2 3f 89 d0 48 83 c0 04 48 8b 44 c6 08 48 89 77 18 48 89 c1 83 e1 03 48 83 f9 02 75 08 \u003C48\u003E 3d fd 00 00 00 76 08 88 57 12 c3 cc cc cc cc 48 c1 e8 02 89 c2    RSP: 0018:ffffbbf02a2236a8 EFLAGS: 00000246    RAX: ffff9cab7d6a0002 RBX: ffffe04b0af88040 RCX: 0000000000000002    RDX: 0000000000000030 RSI: ffff9cab60509b60 RDI: ffffbbf02a2236c0    RBP: 0000000000000000 R08: ffff9cab60509b60 R09: ffffbbf02a2236c0    R10: 0000000000000001 R11: ffffbbf02a223698 R12: 0000000000000000    R13: ffff9cab4e28da80 R14: 0000000000039c01 R15: ffff9cab4e28da88    FS:  00007fab89b85e40(0000) GS:ffff9cea3fcc0000(0000) knlGS:0000000000000000    CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033    CR2: 00007fab84e00000 CR3: 00000040b73a4003 CR4: 00000000003706e0    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000    DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400    Call Trace:     \u003CTASK\u003E     xas_load\u002B0x3a/0x50     __filemap_get_folio\u002B0x80/0x370     ? put_swap_page\u002B0x163/0x360     pagecache_get_page\u002B0x13/0x90     __try_to_reclaim_swap\u002B0x50/0x190     scan_swap_map_slots\u002B0x31e/0x670     get_swap_pages\u002B0x226/0x3c0     folio_alloc_swap\u002B0x1cc/0x240     add_to_swap\u002B0x14/0x70     shrink_page_list\u002B0x968/0xbc0     reclaim_page_list\u002B0x70/0xf0     reclaim_pages\u002B0xdd/0x120     madvise_cold_or_pageout_pte_range\u002B0x814/0xf30     walk_pgd_range\u002B0x637/0xa30     __walk_page_range\u002B0x142/0x170     walk_page_range\u002B0x146/0x170     madvise_pageout\u002B0xb7/0x280     ? asm_common_interrupt\u002B0x22/0x40     madvise_vma_behavior\u002B0x3b7/0xac0     ? find_vma\u002B0x4a/0x70     ? find_vma\u002B0x64/0x70     ? madvise_vma_anon_name\u002B0x40/0x40     madvise_walk_vmas\u002B0xa6/0x130     do_madvise\u002B0x2f4/0x360     __x64_sys_madvise\u002B0x26/0x30     do_syscall_64\u002B0x5b/0x80     ? do_syscall_64\u002B0x67/0x80     ? syscall_exit_to_user_mode\u002B0x17/0x40     ? do_syscall_64\u002B0x67/0x80     ? syscall_exit_to_user_mode\u002B0x17/0x40     ? do_syscall_64\u002B0x67/0x80     ? do_syscall_64\u002B0x67/0x80     ? common_interrupt\u002B0x8b/0xa0     entry_SYSCALL_64_after_hwframe\u002B0x63/0xcd  The problem can be reproduced with the mmtests config config-workload-stressng-mmap.  It does not always happen and when it triggers is variable but it has happened on multiple machines.  The intent of commit b653db77350c patch was to avoid the case where PG_private is clear but folio-\u003Eprivate is not-NULL.  However, THP tail pages uses page-\u003Eprivate for \u0022swp_entry_t if folio_test_swapcache()\u0022 as stated in the documentation for struct folio.  This patch only clobbers page-\u003Eprivate for tail pages if the head page was not in swapcache and warns once if page-\u003Eprivate had an unexpected value.",
  "published": "2025-10-07T16:15:35Z",
  "severity": "medium",
  "cvss": 5.5,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
  "epss": 0.00147,
  "epssPercentile": 0.03979,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 12.15 (bookworm)",
      "fixedVersion": "6.0.7-1",
      "fix": "DEBIAN-CVE-2022-50517",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50517",
      "released": "2025-10-07T16:15:35Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.0.7-1",
      "fix": "DEBIAN-CVE-2022-50517",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50517",
      "released": "2025-10-07T16:15:35Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.0.7-1",
      "fix": "DEBIAN-CVE-2022-50517",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2022-50517",
      "released": "2025-10-07T16:15:35Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-09T01:18:40Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}