{"vuln_id":"CVE-2026-99739","aliases":["CVE-2026-99272","CVE-2026-99275","CVE-2026-99308","CVE-2026-99312","CVE-2026-99314","CVE-2026-99315","CVE-2026-99316","CVE-2026-99317","CVE-2026-99318","CVE-2026-99319","CVE-2026-99320","CVE-2026-99335","CVE-2026-99336","CVE-2026-99345","CVE-2026-99347","CVE-2026-99348","CVE-2026-99350","CVE-2026-99363","CVE-2026-99376","CVE-2026-99377","CVE-2026-99379","CVE-2026-99382","CVE-2026-99384","CVE-2026-99387","CVE-2026-99394","CVE-2026-99426","CVE-2026-99484","CVE-2026-99496","CVE-2026-99566","CVE-2026-99567","CVE-2026-99568","CVE-2026-99569","CVE-2026-99570","CVE-2026-99573","CVE-2026-99574","CVE-2026-99575","CVE-2026-99576","CVE-2026-99577","CVE-2026-99578","CVE-2026-99579","CVE-2026-99580","CVE-2026-99582","CVE-2026-99583","CVE-2026-99587","CVE-2026-99588","CVE-2026-99589","CVE-2026-99590","CVE-2026-99591","CVE-2026-99593","CVE-2026-99594"],"description":"kernel: kernel: Denial of Service via infinite loop during shared memory truncation","published_at":"2026-11-20T05:51:11Z","modified_at":"2026-11-22T22:00:21.518336Z","first_seen_at":"2026-11-21T19:15:15.261723Z","severity":"medium","severity_source":"redhat","cvss_score":5.5,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cwe":["CWE-835"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00177,"epss_percentile":0.07258,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99739"},"matched_alias":null,"items":[{"id":15042,"source":{"id":"osv","name":"OSV.dev"},"title":"DEBIAN-CVE-2026-99739: In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large swap entry Truncating a tmpfs file or memfd to a page-…","summary":"In the Linux kernel, the following vulnerability has been resolved:  mm/shmem: fix truncate hang in large swap entry  Truncating a tmpfs file or memfd to a page-aligned size inside a large swap entry can loop indefinitely in shmem_undo_range(). The task holds the inode lock and cannot be killed.  A large swap entry represents a whole swapped-out folio. For example, truncate a file whose pages 0-7 share one swap entry to four pages:      [ 0  1  2  3 | 4  5  6  7 ]          keep    |   discard                  ^             new EOF, start = 4  i_size has already been updated when boundary handling asks shmem_get_partial_folio() for page 4. Since it is swapped out, the helper calls shmem_get_folio() with SGP_READ. That rejects page 4 with -EINVAL because its starting offset equals i_size. Nothing is read back.  The final scan cannot free the entry without losing pages 0-3. It skips it, restarts from start = 4, and finds it again indefinitely. An unaligned truncate avoids this particular failure because the requested page starts below i_size. Folios already in the page-cache cannot trigger it as the direct lookup will return them beyond EOF.  Fix it by letting shmem_get_partial_folio() call shmem_swapin_folio() directly for swap entries. This bypasses the read path's i_size check, allowing the existing boundary handling to zero and split the folio. If swap-in returns a smaller folio, it also splits the swap entry so the final scan can free the entries beyond EOF. Retry the lookup if the entry changes during swap-in.  Handling swap-in allocation failures remains broken and is unchanged by this commit. Even when shmem_swapin_folio() correctly returns -ENOMEM instead of -EEXIST, shmem_get_partial_folio() returns NULL and shmem_undo_range() skips boundary handling. If the large swap entry remains intact, truncation can still loop in the final scan, while hole punching can return without zeroing the boundary.  This may read an entire large folio back from swap while holding i_rwsem, only to discard part of it. Avoiding that I/O would require splitting both the swap entry and any large folio still in the swap cache. That, however, is much bigger work.\n\nAffected: Debian:13:linux, Debian:14:linux\n\nFixed in: 6.12.118-1\n\nReferences:\nhttps://security-tracker.debian.org/tracker/CVE-2026-99739","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-99739","published_at":"2026-11-20T06:18:11.590000Z","updated_at":"2026-11-22T22:00:21.518336Z","fetched_at":"2026-11-23T03:05:53.019625Z","severity":"medium","cvss_score":5.5,"epss":0.00177,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":"13:linux","vuln_id":"CVE-2026-99739","vuln_ids":["CVE-2026-99272","CVE-2026-99275","CVE-2026-99308","CVE-2026-99312","CVE-2026-99314","CVE-2026-99315","CVE-2026-99316","CVE-2026-99317","CVE-2026-99318","CVE-2026-99319","CVE-2026-99320","CVE-2026-99335","CVE-2026-99336","CVE-2026-99345","CVE-2026-99347","CVE-2026-99348","CVE-2026-99350","CVE-2026-99363","CVE-2026-99376","CVE-2026-99377","CVE-2026-99379","CVE-2026-99382","CVE-2026-99384","CVE-2026-99387","CVE-2026-99394","CVE-2026-99426","CVE-2026-99484","CVE-2026-99496","CVE-2026-99566","CVE-2026-99567","CVE-2026-99568","CVE-2026-99569","CVE-2026-99570","CVE-2026-99573","CVE-2026-99574","CVE-2026-99575","CVE-2026-99576","CVE-2026-99577","CVE-2026-99578","CVE-2026-99579","CVE-2026-99580","CVE-2026-99582","CVE-2026-99583","CVE-2026-99587","CVE-2026-99588","CVE-2026-99589","CVE-2026-99590","CVE-2026-99591","CVE-2026-99593","CVE-2026-99594","CVE-2026-99739","DEBIAN-CVE-2026-99739"],"tags":["osv","debian","fix-available"],"cluster_id":622,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/15042","html":"https://vulnwatch.ve1ve2.com/item/15042"}},{"id":9556,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-99739: In the Linux kernel, the following vulnerability has been resolved: mm/shmem: fix truncate hang in large swap entry Truncating a tmpfs file or memfd to a page-…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: fix truncate hang in large swap entry\n\nTruncating a tmpfs file or memfd to a page-aligned size inside a large\nswap entry can loop indefinitely in shmem_undo_range(). The task holds\nthe inode lock and cannot be killed.\n\nA large swap entry represents a whole swapped-out folio. For example,\ntruncate a file whose pages 0-7 share one swap entry to four pages:\n\n    [ 0  1  2  3 | 4  5  6  7 ]\n         keep    |   discard\n                 ^\n            new EOF, start = 4\n\ni_size has already been updated when boundary handling asks\nshmem_get_partial_folio() for page 4. Since it is swapped out, the helper\ncalls shmem_get_folio() with SGP_READ. That rejects page 4 with -EINVAL\nbecause its starting offset equals i_size. Nothing is read back.\n\nThe final scan cannot free the entry without losing pages 0-3. It skips\nit, restarts from start = 4, and finds it again indefinitely. An unaligned\ntruncate avoids this particular failure because the requested page starts\nbelow i_size. Folios already in the page-cache cannot trigger it as the\ndirect lookup will return them beyond EOF.\n\nFix it by letting shmem_get_partial_folio() call shmem_swapin_folio()\ndirectly for swap entries. This bypasses the read path's i_size check,\nallowing the existing boundary handling to zero and split the folio. If\nswap-in returns a smaller folio, it also splits the swap entry so the\nfinal scan can free the entries beyond EOF. Retry the lookup if the entry\nchanges during swap-in.\n\nHandling swap-in allocation failures remains broken and is unchanged by\nthis commit. Even when shmem_swapin_folio() correctly returns -ENOMEM\ninstead of -EEXIST, shmem_get_partial_folio() returns NULL and\nshmem_undo_range() skips boundary handling. If the large swap entry\nremains intact, truncation can still loop in the final scan, while hole\npunching can return without zeroing the boundary.\n\nThis may read an entire large folio back from swap while holding\ni_rwsem, only to discard part of it. Avoiding that I/O would require\nsplitting both the swap entry and any large folio still in the swap\ncache. That, however, is much bigger work.\n\nReferences:\nhttps://git.kernel.org/stable/c/577374a2171cdb68e492725feb564364f93161b6\nhttps://git.kernel.org/stable/c/9fbca74e8efbb8fed180639af349449f04a2a3c3\nhttps://git.kernel.org/stable/c/ef6daf302dc569a67fe50968f9b6085f111b8560\nhttps://git.kernel.org/stable/c/fa213b08f37f9dff78ce240a87579dc264fc7a5d","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99739","published_at":"2026-11-20T06:18:11.590000Z","updated_at":"2026-11-20T06:18:11.590000Z","fetched_at":"2026-11-21T19:15:31.485120Z","severity":"medium","cvss_score":5.5,"epss":0.00177,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"linux","product":null,"vuln_id":"CVE-2026-99739","vuln_ids":["CVE-2026-99272","CVE-2026-99275","CVE-2026-99308","CVE-2026-99312","CVE-2026-99314","CVE-2026-99315","CVE-2026-99316","CVE-2026-99317","CVE-2026-99318","CVE-2026-99319","CVE-2026-99320","CVE-2026-99335","CVE-2026-99336","CVE-2026-99345","CVE-2026-99347","CVE-2026-99348","CVE-2026-99350","CVE-2026-99363","CVE-2026-99376","CVE-2026-99377","CVE-2026-99379","CVE-2026-99382","CVE-2026-99384","CVE-2026-99387","CVE-2026-99394","CVE-2026-99426","CVE-2026-99484","CVE-2026-99496","CVE-2026-99566","CVE-2026-99567","CVE-2026-99568","CVE-2026-99569","CVE-2026-99570","CVE-2026-99573","CVE-2026-99574","CVE-2026-99575","CVE-2026-99576","CVE-2026-99577","CVE-2026-99578","CVE-2026-99579","CVE-2026-99580","CVE-2026-99582","CVE-2026-99583","CVE-2026-99587","CVE-2026-99588","CVE-2026-99589","CVE-2026-99590","CVE-2026-99591","CVE-2026-99593","CVE-2026-99594","CVE-2026-99739"],"tags":[],"cluster_id":622,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9556","html":"https://vulnwatch.ve1ve2.com/item/9556"}},{"id":883,"source":{"id":"redhat","name":"Red Hat Security Data API"},"title":"CVE-2026-99739: kernel: kernel: Denial of Service via infinite loop during shared memory truncation","summary":"kernel: kernel: Denial of Service via infinite loop during shared memory truncation","url":"https://access.redhat.com/security/cve/cve-2026-99739","published_at":"2026-11-20T05:51:11Z","updated_at":null,"fetched_at":"2026-11-21T19:15:08.893070Z","severity":"medium","cvss_score":5.5,"epss":0.00177,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"redhat","product":null,"vuln_id":"CVE-2026-99739","vuln_ids":["CVE-2026-99272","CVE-2026-99275","CVE-2026-99308","CVE-2026-99312","CVE-2026-99314","CVE-2026-99315","CVE-2026-99316","CVE-2026-99317","CVE-2026-99318","CVE-2026-99319","CVE-2026-99320","CVE-2026-99335","CVE-2026-99336","CVE-2026-99345","CVE-2026-99347","CVE-2026-99348","CVE-2026-99350","CVE-2026-99363","CVE-2026-99376","CVE-2026-99377","CVE-2026-99379","CVE-2026-99382","CVE-2026-99384","CVE-2026-99387","CVE-2026-99394","CVE-2026-99426","CVE-2026-99484","CVE-2026-99496","CVE-2026-99566","CVE-2026-99567","CVE-2026-99568","CVE-2026-99569","CVE-2026-99570","CVE-2026-99573","CVE-2026-99574","CVE-2026-99575","CVE-2026-99576","CVE-2026-99577","CVE-2026-99578","CVE-2026-99579","CVE-2026-99580","CVE-2026-99582","CVE-2026-99583","CVE-2026-99587","CVE-2026-99588","CVE-2026-99589","CVE-2026-99590","CVE-2026-99591","CVE-2026-99593","CVE-2026-99594","CVE-2026-99739"],"tags":["redhat"],"cluster_id":622,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/883","html":"https://vulnwatch.ve1ve2.com/item/883"}}]}