Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LUA garbage collector (CVE-2024-46981) #1513

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

madolson
Copy link
Member

@madolson madolson commented Jan 6, 2025

Reset GC state before closing the lua VM to prevent user data to be wrongly freed while still might be used on destructor callbacks.

Created and publish by Redis in their OSS branch.

Reset GC state before closing the lua VM to prevent user data
to be wrongly freed while still might be used on destructor callbacks.

Signed-off-by: Madelyn Olson <[email protected]>
src/eval.c Show resolved Hide resolved
@madolson madolson merged commit 4ffd3eb into valkey-io:unstable Jan 6, 2025
48 checks passed
@madolson madolson deleted the CVE_1 branch January 6, 2025 22:02
madolson added a commit to madolson/valkey that referenced this pull request Jan 6, 2025
Reset GC state before closing the lua VM to prevent user data to be
wrongly freed while still might be used on destructor callbacks.

Created and publish by Redis in their OSS branch.

Signed-off-by: Madelyn Olson <[email protected]>
Co-authored-by: YaacovHazan <[email protected]>
hpatro pushed a commit to hpatro/valkey that referenced this pull request Jan 6, 2025
Reset GC state before closing the lua VM to prevent user data to be
wrongly freed while still might be used on destructor callbacks.

Created and publish by Redis in their OSS branch.

Signed-off-by: Madelyn Olson <[email protected]>
Co-authored-by: YaacovHazan <[email protected]>
madolson added a commit to madolson/valkey that referenced this pull request Jan 7, 2025
Reset GC state before closing the lua VM to prevent user data to be
wrongly freed while still might be used on destructor callbacks.

Created and publish by Redis in their OSS branch.

Signed-off-by: Madelyn Olson <[email protected]>
Co-authored-by: YaacovHazan <[email protected]>
madolson added a commit that referenced this pull request Jan 7, 2025
Reset GC state before closing the lua VM to prevent user data to be
wrongly freed while still might be used on destructor callbacks.

Created and publish by Redis in their OSS branch.

Signed-off-by: Madelyn Olson <[email protected]>
Co-authored-by: YaacovHazan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backported
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants