CVE-2023-52526: erofs: fix memory leak of LZMA global compressed deduplication

Description

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

erofs: fix memory leak of LZMA global compressed deduplication

When stressing microLZMA EROFS images with the new global compressed
deduplication feature enabled (`-Ededupe`), I found some short-lived
temporary pages weren't properly released, which could slowly cause
unexpected OOMs hours later.

Let's fix it now (LZ4 and DEFLATE don't have this issue.)

Classification

CVE ID: CVE-2023-52526

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

References

https://git.kernel.org/stable/c/6a5a8f0a9740f865693d5aa97a42cc4504538e18
https://git.kernel.org/stable/c/c955751cbf864cf2055117dd3fe7f780d2a57b56
https://git.kernel.org/stable/c/75a5221630fe5aa3fedba7a06be618db0f79ba1e

Timeline