CVE-2024-26655: Fix memory leak in posix_clock_open()

Description

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

Fix memory leak in posix_clock_open()

If the clk ops.open() function returns an error, we don't release the
pccontext we allocated for this clock.

Re-organize the code slightly to make it all more obvious.

Classification

CVE ID: CVE-2024-26655

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

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

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

References

https://git.kernel.org/stable/c/a88649b49523e8cbe95254440d803e38c19d2341
https://git.kernel.org/stable/c/0200dd7ed2335469955d7e69cc1a6fa7df1f3847
https://git.kernel.org/stable/c/5b4cdd9c5676559b8a7c944ac5269b914b8c0bb8

Timeline