ALAS-2024-547


Amazon Linux 2023 Security Advisory: ALAS-2024-547
Advisory Release Date: 2024-02-29 10:29 Pacific
Advisory Updated Date: 2024-03-05 12:00 Pacific
Severity: Important

Issue Overview:

Late privilege drop in REFRESH MATERIALIZED VIEW CONCURRENTLY in PostgreSQL allows an object creator to execute arbitrary SQL functions as the command issuer. The command intends to run SQL functions as the owner of the materialized view, enabling safe refresh of untrusted materialized views. The victim is a superuser or member of one of the attacker's roles. The attack requires luring the victim into running REFRESH MATERIALIZED VIEW CONCURRENTLY on the attacker's materialized view. As part of exploiting this vulnerability, the attacker creates functions that use CREATE RULE to convert the internally-built temporary table to a view. Versions before PostgreSQL 15.6, 14.11, 13.14, and 12.18 are affected. The only known exploit does not work in PostgreSQL 16 and later. For defense in depth, PostgreSQL 16.2 adds the protections that older branches are using to fix their vulnerability. (CVE-2024-0985)


Affected Packages:

postgresql15


Issue Correction:
Run dnf update postgresql15 --releasever 2023.3.20240304 to update your system.

New Packages:
aarch64:
    postgresql15-plperl-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-plpython3-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-pltcl-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-static-15.6-1.amzn2023.0.1.aarch64
    postgresql15-upgrade-devel-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-llvmjit-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-upgrade-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-private-libs-15.6-1.amzn2023.0.1.aarch64
    postgresql15-private-libs-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-test-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-upgrade-15.6-1.amzn2023.0.1.aarch64
    postgresql15-contrib-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-15.6-1.amzn2023.0.1.aarch64
    postgresql15-contrib-15.6-1.amzn2023.0.1.aarch64
    postgresql15-plperl-15.6-1.amzn2023.0.1.aarch64
    postgresql15-private-devel-15.6-1.amzn2023.0.1.aarch64
    postgresql15-llvmjit-15.6-1.amzn2023.0.1.aarch64
    postgresql15-plpython3-15.6-1.amzn2023.0.1.aarch64
    postgresql15-pltcl-15.6-1.amzn2023.0.1.aarch64
    postgresql15-docs-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-server-devel-15.6-1.amzn2023.0.1.aarch64
    postgresql15-upgrade-devel-15.6-1.amzn2023.0.1.aarch64
    postgresql15-server-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-docs-15.6-1.amzn2023.0.1.aarch64
    postgresql15-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-test-15.6-1.amzn2023.0.1.aarch64
    postgresql15-server-devel-debuginfo-15.6-1.amzn2023.0.1.aarch64
    postgresql15-server-15.6-1.amzn2023.0.1.aarch64
    postgresql15-debugsource-15.6-1.amzn2023.0.1.aarch64

noarch:
    postgresql15-test-rpm-macros-15.6-1.amzn2023.0.1.noarch

src:
    postgresql15-15.6-1.amzn2023.0.1.src

x86_64:
    postgresql15-pltcl-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-test-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-plpython3-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-server-devel-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-private-libs-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-upgrade-devel-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-llvmjit-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-docs-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-server-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-server-devel-15.6-1.amzn2023.0.1.x86_64
    postgresql15-plperl-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-plpython3-15.6-1.amzn2023.0.1.x86_64
    postgresql15-docs-15.6-1.amzn2023.0.1.x86_64
    postgresql15-upgrade-15.6-1.amzn2023.0.1.x86_64
    postgresql15-15.6-1.amzn2023.0.1.x86_64
    postgresql15-test-15.6-1.amzn2023.0.1.x86_64
    postgresql15-private-devel-15.6-1.amzn2023.0.1.x86_64
    postgresql15-static-15.6-1.amzn2023.0.1.x86_64
    postgresql15-private-libs-15.6-1.amzn2023.0.1.x86_64
    postgresql15-pltcl-15.6-1.amzn2023.0.1.x86_64
    postgresql15-contrib-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-plperl-15.6-1.amzn2023.0.1.x86_64
    postgresql15-contrib-15.6-1.amzn2023.0.1.x86_64
    postgresql15-llvmjit-15.6-1.amzn2023.0.1.x86_64
    postgresql15-upgrade-devel-15.6-1.amzn2023.0.1.x86_64
    postgresql15-server-15.6-1.amzn2023.0.1.x86_64
    postgresql15-upgrade-debuginfo-15.6-1.amzn2023.0.1.x86_64
    postgresql15-debugsource-15.6-1.amzn2023.0.1.x86_64