Skip to content

Fix heap overflow corruption in XAUTOCLAIM (CVE-2022-31144)#11002

Merged
oranagra merged 1 commit intoredis:unstablefrom
oranagra:fix-xautoclaim-corruption
Jul 18, 2022
Merged

Fix heap overflow corruption in XAUTOCLAIM (CVE-2022-31144)#11002
oranagra merged 1 commit intoredis:unstablefrom
oranagra:fix-xautoclaim-corruption

Conversation

@oranagra
Copy link
Member

The temporary array for deleted entries reply of XAUTOCLAIM was
insufficient, but also in fact the COUNT argument should be used to
control the size of the reply, so instead of terminating the loop by
only counting the claimed entries, we'll count deleted entries as well.

Fix #10968
Addresses CVE-2022-31144

The temporary array for deleted entries reply of XAUTOCLAIM was
insufficient, but also in fact the COUNT argument should be used to
control the size of the reply, so instead of terminating the loop by
only counting the claimed entries, we'll count deleted entries as well.

Fix #10968
Addresses CVE-2022-31144
@oranagra oranagra changed the title Fix heap overflow corruption in XAUTOCLAIM Fix heap overflow corruption in XAUTOCLAIM (CVE-2022-31144) Jul 18, 2022
@oranagra oranagra merged commit 2825b60 into redis:unstable Jul 18, 2022
@oranagra oranagra deleted the fix-xautoclaim-corruption branch July 18, 2022 08:36
oranagra added a commit that referenced this pull request Jul 18, 2022
The temporary array for deleted entries reply of XAUTOCLAIM was
insufficient, but also in fact the COUNT argument should be used to
control the size of the reply, so instead of terminating the loop by
only counting the claimed entries, we'll count deleted entries as well.

Fix #10968
Addresses CVE-2022-31144

(cherry picked from commit 2825b60)
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
)

The temporary array for deleted entries reply of XAUTOCLAIM was
insufficient, but also in fact the COUNT argument should be used to
control the size of the reply, so instead of terminating the loop by
only counting the claimed entries, we'll count deleted entries as well.

Fix redis#10968
Addresses CVE-2022-31144
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

[BUG] REDIS BUG REPORT by stream command

2 participants