CVE-2026-31702

NVD 0.07.8
EchelonGraph scoreMEDIUM confidence

Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-05-01. NVD baseline CVSS 7.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, nvd
0.0
EchelonGraph verdictMonitorLow exploitation likelihood right now — keep watching.
  • No confirmed exploitation signals yet
CISA-KEV: Not listedEPSS: 0%CVSS: Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io()

In f2fs_compress_write_end_io(), dec_page_count(sbi, type) can bring the F2FS_WB_CP_DATA counter to zero, unblocking f2fs_wait_on_all_pages() in f2fs_put_super() on a concurrent unmount CPU. The unmount path then proceeds to call f2fs_destroy_page_array_cache(sbi), which destroys sbi->page_array_slab via kmem_cache_destroy(), and eventually kfree(sbi). Meanwhile, the bio completion callback is still executing: when it reaches page_array_free(sbi, ...), it dereferences sbi->page_array_slab — a destroyed slab cache — to call kmem_cache_free(), causing a use-after-free.

This is the same class of bug as CVE-2026-23234 (which fixed the equivalent race in f2fs_write_end_io() in data.c), but in the compressed writeback completion path that was not covered by that fix.

Fix this by moving dec_page_count() to after page_array_free(), so that all sbi accesses complete before the counter decrement that can unblock unmount. For non-last folios (where atomic_dec_return on cic->pending_pages is nonzero), dec_page_count is called immediately before returning — page_array_free is not reached on this path, so there is no post-decrement sbi access. For the last folio, page_array_free runs while the F2FS_WB_CP_DATA counter is still nonzero (this folio has not yet decremented it), keeping sbi alive, and dec_page_count runs as the final operation.

CVSS v3
EG Score
7.8(medium)
EPSS
2.1%
KEV
Not listed

Published

May 1, 2026

Last Modified

June 14, 2026

Advisory Details (5)

Auto-updated May 6, 2026
No patch confirmed yet.
generic

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io() - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/f5154cf3ce1c8193f0c1891d3769f62740cfe6fe
generic

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io() - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/ef57cd3329b40c739b9a2e1a8a21ecc4171c6280
generic

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io() - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/c76cf339b87975ae5b2c06d2d774d5667d25a12a
generic

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io() - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/39d4ee19c1e7d753dd655aebee632271b171f43a
generic

f2fs: fix use-after-free of sbi in f2fs_compress_write_end_io() - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/2c97dcb6147c8f7f25c629b93be1e69617de5d4a

Vendor Advisories for CVE-2026-31702(2)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Data Freshness Timeline

(refreshed 6× in last 7d / 39× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

Showing the most recent 100 of 161 total refreshes for this CVE.

  1. 2026-07-15 16:57 UTCEPSS rescore
  2. 2026-07-15 16:57 UTCEPSS rescore
  3. 2026-07-13 22:30 UTCEPSS rescore
  4. 2026-07-12 05:46 UTCEPSS rescore
  5. 2026-07-11 08:27 UTCEPSS rescore
  6. 2026-07-09 19:10 UTCEPSS rescore
  7. 2026-07-08 15:15 UTCEPSS rescore
  8. 2026-07-07 13:46 UTCEPSS rescore
  9. 2026-07-06 16:27 UTCEPSS rescore
  10. 2026-07-06 16:27 UTCEPSS rescore
  11. 2026-07-06 02:23 UTCEPSS rescore
  12. 2026-07-06 02:23 UTCEPSS rescore
  13. 2026-07-05 02:30 UTCEPSS rescore
  14. 2026-07-04 06:31 UTCEPSS rescore
  15. 2026-07-01 15:06 UTCEPSS rescore
  16. 2026-06-30 23:22 UTCEPSS rescore
  17. 2026-06-29 14:06 UTCEPSS rescore
  18. 2026-06-29 14:06 UTCEPSS rescore
  19. 2026-06-28 14:07 UTCEPSS rescore
  20. 2026-06-28 14:07 UTCEPSS rescore
  21. 2026-06-28 04:56 UTCEPSS rescore
  22. 2026-06-28 04:56 UTCEPSS rescore
  23. 2026-06-27 03:08 UTCEPSS rescore
  24. 2026-06-25 13:49 UTCEPSS rescore
  25. 2026-06-25 13:49 UTCEPSS rescore
Show 75 more
  1. 2026-06-24 14:05 UTCEPSS rescore
  2. 2026-06-23 21:33 UTCEPSS rescore
  3. 2026-06-23 21:33 UTCEPSS rescore
  4. 2026-06-22 14:25 UTCEPSS rescore
  5. 2026-06-22 14:25 UTCEPSS rescore
  6. 2026-06-21 14:56 UTCEPSS rescore
  7. 2026-06-21 14:56 UTCEPSS rescore
  8. 2026-06-21 01:59 UTCEPSS rescore
  9. 2026-06-19 19:25 UTCEPSS rescore
  10. 2026-06-19 19:25 UTCEPSS rescore
  11. 2026-06-18 17:52 UTCEPSS rescore
  12. 2026-06-18 17:52 UTCEPSS rescore
  13. 2026-06-17 17:53 UTCEPSS rescore
  14. 2026-06-16 17:52 UTCEPSS rescore
  15. 2026-06-15 17:49 UTCEPSS rescore
  16. 2026-06-14 23:28 UTCMITRE cvelistV5
  17. 2026-06-14 23:18 UTCEPSS rescore
  18. 2026-06-14 21:48 UTCEG score recompute
  19. 2026-06-14 21:48 UTCVendor advisory
  20. 2026-06-14 21:48 UTCGHSA enrichment
  21. 2026-06-14 09:12 UTCEG score recompute
  22. 2026-06-14 09:12 UTCVendor advisory
  23. 2026-06-14 09:12 UTCGHSA enrichment
  24. 2026-06-13 23:00 UTCEPSS rescore
  25. 2026-06-12 23:12 UTCEPSS rescore
  26. 2026-06-12 23:12 UTCEPSS rescore
  27. 2026-06-12 06:03 UTCEG score recompute
  28. 2026-06-12 06:03 UTCGHSA enrichment
  29. 2026-06-11 17:26 UTCEG score recompute
  30. 2026-06-11 17:26 UTCVendor advisory
  31. 2026-06-11 17:26 UTCGHSA enrichment
  32. 2026-06-11 14:00 UTCEPSS rescore
  33. 2026-06-11 03:39 UTCEG score recompute
  34. 2026-06-11 03:39 UTCVendor advisory
  35. 2026-06-11 03:39 UTCGHSA enrichment
  36. 2026-06-10 22:18 UTCEPSS rescore
  37. 2026-06-10 13:22 UTCEPSS rescore
  38. 2026-06-10 13:17 UTCEG score recompute
  39. 2026-06-10 13:17 UTCVendor advisory
  40. 2026-06-10 13:17 UTCGHSA enrichment
  41. 2026-06-10 00:42 UTCEG score recompute
  42. 2026-06-10 00:42 UTCVendor advisory
  43. 2026-06-10 00:42 UTCGHSA enrichment
  44. 2026-06-09 12:07 UTCEG score recompute
  45. 2026-06-09 12:07 UTCVendor advisory
  46. 2026-06-09 12:07 UTCGHSA enrichment
  47. 2026-06-08 23:31 UTCEG score recompute
  48. 2026-06-08 23:31 UTCVendor advisory
  49. 2026-06-08 23:31 UTCGHSA enrichment
  50. 2026-06-08 14:17 UTCEPSS rescore
  51. 2026-06-08 14:17 UTCEPSS rescore
  52. 2026-06-08 06:04 UTCEG score recompute
  53. 2026-06-08 06:04 UTCVendor advisory
  54. 2026-06-08 06:04 UTCGHSA enrichment
  55. 2026-06-07 17:29 UTCEG score recompute
  56. 2026-06-07 17:29 UTCVendor advisory
  57. 2026-06-07 17:29 UTCGHSA enrichment
  58. 2026-06-07 15:25 UTCEPSS rescore
  59. 2026-06-07 15:25 UTCEPSS rescore
  60. 2026-06-07 15:25 UTCEPSS rescore
  61. 2026-06-07 04:54 UTCEG score recompute
  62. 2026-06-07 04:54 UTCVendor advisory
  63. 2026-06-07 04:54 UTCGHSA enrichment
  64. 2026-06-06 16:19 UTCEG score recompute
  65. 2026-06-06 16:19 UTCVendor advisory
  66. 2026-06-06 16:19 UTCGHSA enrichment
  67. 2026-06-06 13:47 UTCEPSS rescore
  68. 2026-06-06 13:47 UTCEPSS rescore
  69. 2026-06-06 03:44 UTCEG score recompute
  70. 2026-06-06 03:44 UTCVendor advisory
  71. 2026-06-06 03:44 UTCGHSA enrichment
  72. 2026-06-05 22:47 UTCEPSS rescore
  73. 2026-06-05 22:47 UTCEPSS rescore
  74. 2026-06-05 15:09 UTCEG score recompute
  75. 2026-06-05 15:09 UTCVendor advisory

Frequently asked(4)

What is CVE-2026-31702?
CVE-2026-31702 is a publicly disclosed vulnerability published on May 1, 2026. In the Linux kernel, the following vulnerability has been resolved: f2fs: fix use-after-free of sbi in f2fscompresswriteendio() In f2fscompresswriteendio(), decpagecount(sbi, type) can bring the F2FSWBCP_DATA counter to zero, unblocking f2fswaitonallpages() in f2fsputsuper() on a concurrent unmount…
When was CVE-2026-31702 disclosed?
CVE-2026-31702 was first published in the National Vulnerability Database on May 1, 2026, with the most recent update on June 14, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-31702 actively exploited?
CVE-2026-31702 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 2.1% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
How do I remediate CVE-2026-31702?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-31702, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

Explore the affected products and dependency analysis for CVE-2026-31702

Explore →

Is Your Infrastructure Affected by CVE-2026-31702?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.