In SQLite before 3.32.3, select.c mishandles query-flattener optimization, leading to a multiSelectOrderBy heap overflow because of misuse of transitive properties for constant propagation.
https://www.sqlite.org/src/tktview?name=8f157e8010
https://www.sqlite.org/src/timeline?p=version-3.32.3&bt=version-3.32.2
https://www.sqlite.org/src/info/10fa79d00f8091e5
https://www.oracle.com/security-alerts/cpuoct2020.html
https://www.oracle.com/security-alerts/cpujan2021.html
https://www.oracle.com/security-alerts/cpuapr2022.html
https://www.oracle.com/security-alerts/cpuApr2021.html
https://usn.ubuntu.com/4438-1/
https://support.apple.com/kb/HT212147
https://support.apple.com/kb/HT211931
https://support.apple.com/kb/HT211850
https://support.apple.com/kb/HT211847
https://support.apple.com/kb/HT211844
https://support.apple.com/kb/HT211843
https://security.netapp.com/advisory/ntap-20200709-0001/
https://security.gentoo.org/glsa/202007-26
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
http://seclists.org/fulldisclosure/2021/Feb/14
http://seclists.org/fulldisclosure/2020/Nov/22
http://seclists.org/fulldisclosure/2020/Nov/20