{"vuln_id":"CVE-2026-89987","aliases":[],"description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/huge_memory: transfer the pmd dirty bit to the folio on zap\n\nzap_huge_pmd_folio() propagates the pmd young bit to the folio for the\nfile case, but not the dirty bit.  The pte path does propagate it, in\nzap_present_folio_ptes() and so does the pmd split path, in\n__split_huge_pmd_locked().\n\nFor most file mappings the omission is harmless, because writing to a\nshared file mapping goes through page_mkwrite(), which dirties the folio. \ntmpfs is different: it has no page_mkwrite(), and vma_wants_writenotify()\nis false for it, so a *read* fault on a MAP_SHARED tmpfs mapping installs\na writable pmd via do_read_fault().  do_read_fault() does not call\nfault_dirty_shared_page(), so subsequent stores through that mapping set\nonly the hardware dirty bit in the pmd and never call folio_mark_dirty(). \nA shmem folio allocated by a fault is marked uptodate but not dirty (see\nthe clear: block in shmem_get_folio_gfp()), so PG_dirty is never set at\nall.\n\nUnmapping such a folio - munmap(), or exit_mmap() when the process dies -\nthen loses the only record that it was written, because zap_huge_pmd()\ndrops the pmd without transferring the dirty bit.  Reclaim afterwards sees\na clean shmem folio: the whole swap-out block in shrink_folio_list() is\ninside \"if (folio_test_dirty(folio))\", so pageout() is skipped and the\nfolio falls into __remove_mapping().  There, folio_is_file_lru() is false\nfor a swapbacked folio, so no shadow entry is created and\n__filemap_remove_folio(folio, NULL) simply empties the i_pages slot.  The\ndata is freed without ever being written to swap, and the next fault on\nthat index returns a freshly zeroed folio.\n\nThis is silent data loss for any process that keeps state in a MAP_SHARED\ntmpfs segment across an unmap - for example a cache handed from one\nprocess generation to the next through /dev/shm.  It requires the folio to\nbe PMD-mapped, so it only shows up once shmem THP is enabled (which is\nwhat we did in Meta fleet and started noticing crashes); with THP off the\npte path transfers the dirty bit correctly.  It also only becomes visible\nwhen swap is enabled, because with no swap device shmem folios (which are\non the anon LRU) are not scanned by reclaim at all, so the clean folio is\nnever dropped.\n\nReproduced on x86_64 with a tmpfs mounted huge=within_size: read-fault a\n2MB-backed region, write a known pattern through the resulting mapping,\nmunmap, force reclaim of the cgroup, then re-map and read back.  Without\nthis patch the region reads back as zeros and vmstat shows zswpout 0 - the\ndata was discarded rather than swapped.  With this patch the region reads\nback correctly and the pages are swapped out as expected.  With\nhuge=never, or when the first touch is a write, the test passes either\nway.","published_at":"2026-09-16T11:17:09.767000Z","modified_at":"2026-10-30T13:20:37.847000Z","first_seen_at":"2026-11-21T19:15:20.767260Z","severity":"unknown","severity_source":null,"cvss_score":null,"cvss_vector":null,"cwe":[],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00232,"epss_percentile":0.142,"nvd_status":"Received","enriched_at":"2026-11-22T12:19:27.550401Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-89987"},"matched_alias":null,"items":[{"id":2680,"source":{"id":"ubuntu-usn","name":"Ubuntu Security Notices"},"title":"USN-9169-2: Linux kernel vulnerabilities","summary":"Several security issues were discovered in the Linux kernel.\nAn attacker could possibly use these to compromise the system.\nThis update corrects flaws in the following subsystems:\n- Stream parser;\n- x86 architecture;\n- GPU drivers;\n- HID subsystem;\n- I3C subsystem;\n- MemoryStick subsystem;\n- Network drivers;\n- Ethernet team driver;\n- NVME drivers;\n- S/390 drivers;\n- SCSI subsystem;\n- Greybus lights staging drivers;\n- Realtek RTL8723BS SDIO drivers;\n- Thunderbolt and USB4 drivers;\n- TTY drivers;\n- USB Device Class drivers;\n- USB core drivers;\n- USB Gadget drivers;\n- USB Host Controller drivers;\n- USB Serial drivers;\n- USB Mass Storage drivers;\n- USB Type-C Port Controller Manager driver;\n- TI TPS6598x USB Power Delivery controller driver;\n- Ceph distributed file system;\n- File systems infrastructure;\n- F2FS file system;\n- Network file system (NFS) server daemon;\n- File system notification infrastructure;\n- OCFS2 file system;\n- SMB network file system;\n- Kernel futex primitives;\n- VLANs driver;\n- Netfilter;\n- TCP network protocol;\n- Audit subsystem;\n- BPF subsystem;\n- Perf events;\n- Watch queue notification mechanism;\n- Memory management;\n- Bluetooth subsystem;\n- Ethernet bridge;\n- Networking core;\n- HSR network protocol;\n- IPv4 networking;\n- IPv6 networking;\n- IUCV driver;\n- MAC80211 subsystem;\n- Management Component Transport Protocol (MCTP);\n- Netlink;\n- Open vSwitch;\n- Packet sockets;\n- RDS protocol;\n- Network traffic control;\n- SCTP protocol;\n- SMC sockets;\n- TIPC protocol;\n- TLS protocol;\n- VMware vSockets driver;\n- Wireless networking;\n- AppArmor security module;\n- Key management;\n- ALSA framework;\n- Analog Devices audio codecs;\n- USB sound devices;\n(CVE-2022-49622, CVE-2022-50167, CVE-2023-53733, CVE-2025-38728,\nCVE-2025-40135, CVE-2026-31678, CVE-2026-53353, CVE-2026-64015,\nCVE-2026-64190, CVE-2026-74341, CVE-2026-74406, CVE-2026-74739,\nCVE-2026-80852, CVE-2026-80861, CVE-2026-80947, CVE-2026-89481,\nCVE-2026-89492, CVE-2026-89553, CVE-2026-89625, CVE-2026-89633,\nCVE-2026-89638, CVE-2026-89640, CVE-2026-89652, CVE-2026-89672,\nCVE-2026-89680, CVE-2026-89685, CVE-2026-89707, CVE-2026-89761,\nCVE-2026-89837, CVE-2026-89987, CVE-2026-90016, CVE-2026-90029,\nCVE-2026-93179, CVE-2026-93199, CVE-2026-97529, CVE-2026-97530,\nCVE-2026-97555, CVE-2026-97557, CVE-2026-97558, CVE-2026-97564,\nCVE-2026-97615, CVE-2026-97939, CVE-2026-98170, CVE-2026-98171,\nCVE-2026-98193, CVE-2026-98377, CVE-2026-98386, CVE-2026-98451,\nCVE-2026-98454, CVE-2026-98456, CVE-2026-98490, CVE-2026-98507,\nCVE-2026-98549, CVE-2026-98568, CVE-2026-98655, CVE-2026-98681,\nCVE-2026-98686, CVE-2026-98694, CVE-2026-98698, CVE-2026-98700,\nCVE-2026-98701, CVE-2026-98704, CVE-2026-98705, CVE-2026-98706,\nCVE-2026-98707, CVE-2026-98708, CVE-2026-98709, CVE-2026-98716,\nCVE-2026-98726, CVE-2026-98735, CVE-2026-98739, CVE-2026-98741,\nCVE-2026-98742, CVE-2026-98750, CVE-2026-98752, CVE-2026-98753,\nCVE-2026-98754, CVE-2026-98760, CVE-2026-98761, CVE-2026-98763,\nCVE-2026-98769, CVE-2026-98772, CVE-2026-98794, CVE-2026-98805,\nCVE-2026-98811, CVE-2026-98812, CVE-2026-98823, CVE-2026-98836,\nCVE-2026-98838, CVE-2026-98846, CVE-2026-98850, CVE-2026-98857,\nCVE-2026-98862, CVE-2026-98944, CVE-2026-98950, CVE-2026-98955,\nCVE-2026-98956, CVE-2026-98964, CVE-2026-98967, CVE-2026-98969,\nCVE-2026-98977, CVE-2026-98984, CVE-2026-98985, CVE-2026-98990,\nCVE-2026-98992, CVE-2026-98993, CVE-2026-99002, CVE-2026-99006,\nCVE-2026-99008, CVE-2026-99010, CVE-2026-99015, CVE-2026-99019,\nCVE-2026-99025, CVE-2026-99027, CVE-2026-99031, CVE-2026-99032,\nCVE-2026-99033, CVE-2026-99038, CVE-2026-99039, CVE-2026-99041,\nCVE-2026-99053, CVE-2026-99054, CVE-2026-99056, CVE-2026-99072,\nCVE-2026-99077, CVE-2026-99080, CVE-2026-99081, CVE-2026-99082,\nCVE-2026-99083, CVE-2026-99112, CVE-2026-99113, CVE-2026-99114,\nCVE-2026-99115, CVE-2026-99117, CVE-2026-99121, CVE-2026-99126,\nCVE-2026-99127, CVE-2026-99128, CVE-2026-99133, CVE-2026-99138,\nCVE-2026-99152, CVE-2026-99153, CVE-2026-99154, CVE-2026-99165,\nCVE-2026-99…","url":"https://ubuntu.com/security/notices/USN-9169-2","published_at":"2026-11-20T15:33:29Z","updated_at":"2026-11-20T15:33:29Z","fetched_at":"2026-11-21T19:15:20.738940Z","severity":"critical","cvss_score":9.8,"epss":0.01599,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2022-49622","vuln_ids":["CVE-2022-49622","CVE-2022-50167","CVE-2023-53733","CVE-2025-38728","CVE-2025-40135","CVE-2026-31678","CVE-2026-53353","CVE-2026-64015","CVE-2026-64190","CVE-2026-74341","CVE-2026-74406","CVE-2026-74739","CVE-2026-80852","CVE-2026-80861","CVE-2026-80947","CVE-2026-89481","CVE-2026-89492","CVE-2026-89553","CVE-2026-89625","CVE-2026-89633","CVE-2026-89638","CVE-2026-89640","CVE-2026-89652","CVE-2026-89672","CVE-2026-89680","CVE-2026-89685","CVE-2026-89707","CVE-2026-89761","CVE-2026-89837","CVE-2026-89987","CVE-2026-90016","CVE-2026-90029","CVE-2026-93179","CVE-2026-93199","CVE-2026-97529","CVE-2026-97530","CVE-2026-97555","CVE-2026-97557","CVE-2026-97558","CVE-2026-97564","CVE-2026-97615","CVE-2026-97939","CVE-2026-98170","CVE-2026-98171","CVE-2026-98193","CVE-2026-98377","CVE-2026-98386","CVE-2026-98451","CVE-2026-98454","CVE-2026-98456","CVE-2026-98490","CVE-2026-98507","CVE-2026-98549","CVE-2026-98568","CVE-2026-98655","CVE-2026-98681","CVE-2026-98686","CVE-2026-98694","CVE-2026-98698","CVE-2026-98700","CVE-2026-98701","CVE-2026-98704","CVE-2026-98705","CVE-2026-98706","CVE-2026-98707","CVE-2026-98708","CVE-2026-98709","CVE-2026-98716","CVE-2026-98726","CVE-2026-98735","CVE-2026-98739","CVE-2026-98741","CVE-2026-98742","CVE-2026-98750","CVE-2026-98752","CVE-2026-98753","CVE-2026-98754","CVE-2026-98760","CVE-2026-98761","CVE-2026-98763","CVE-2026-98769","CVE-2026-98772","CVE-2026-98794","CVE-2026-98805","CVE-2026-98811","CVE-2026-98812","CVE-2026-98823","CVE-2026-98836","CVE-2026-98838","CVE-2026-98846","CVE-2026-98850","CVE-2026-98857","CVE-2026-98862","CVE-2026-98944","CVE-2026-98950","CVE-2026-98955","CVE-2026-98956","CVE-2026-98964","CVE-2026-98967","CVE-2026-98969","CVE-2026-98977","CVE-2026-98984","CVE-2026-98985","CVE-2026-98990","CVE-2026-98992","CVE-2026-98993","CVE-2026-99002","CVE-2026-99006","CVE-2026-99008","CVE-2026-99010","CVE-2026-99015","CVE-2026-99019","CVE-2026-99025","CVE-2026-99027","CVE-2026-99031","CVE-2026-99032","CVE-2026-99033","CVE-2026-99038","CVE-2026-99039","CVE-2026-99041","CVE-2026-99053","CVE-2026-99054","CVE-2026-99056","CVE-2026-99072","CVE-2026-99077","CVE-2026-99080","CVE-2026-99081","CVE-2026-99082","CVE-2026-99083","CVE-2026-99112","CVE-2026-99113","CVE-2026-99114","CVE-2026-99115","CVE-2026-99117","CVE-2026-99121","CVE-2026-99126","CVE-2026-99127","CVE-2026-99128","CVE-2026-99133","CVE-2026-99138","CVE-2026-99152","CVE-2026-99153","CVE-2026-99154","CVE-2026-99165","USN-9169-2"],"tags":[],"cluster_id":2682,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2680","html":"https://vulnwatch.ve1ve2.com/item/2680"}}]}