title: 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.
affected:
{
product: Linux
vendor: Linux
defaultStatus: unaffected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 60c6946675fc, lessThan: a88649b49523, status: affected, versionType: git
version: 60c6946675fc, lessThan: 0200dd7ed233, status: affected, versionType: git
version: 60c6946675fc, lessThan: 5b4cdd9c5676, status: affected, versionType: git
}
{
product: Linux
vendor: Linux
defaultStatus: affected
repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
versions:
version: 6.7, status: affected
version: 0, lessThan: 6.7, status: unaffected, versionType: custom
version: 6.7.12, lessThanOrEqual: 6.7.*, status: unaffected, versionType: custom
version: 6.8.3, lessThanOrEqual: 6.8.*, status: unaffected, versionType: custom
version: 6.9-rc2, lessThanOrEqual: *, status: unaffected, versionType: original_commit_for_fix
}
