From 8a09069bb3936d08372ba956204acd4e6c74c4db Mon Sep 17 00:00:00 2001 From: <> Date: Wed, 15 Nov 2023 18:48:47 +0000 Subject: [PATCH] Deployed 9b24cfd with MkDocs version: 1.5.3 --- packages/hardened_malloc/index.html | 20 +++++++++++++------- search/search_index.json | 2 +- sitemap.xml | 8 ++++---- sitemap.xml.gz | Bin 248 -> 249 bytes 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/packages/hardened_malloc/index.html b/packages/hardened_malloc/index.html index 53336bd..876d207 100644 --- a/packages/hardened_malloc/index.html +++ b/packages/hardened_malloc/index.html @@ -499,7 +499,7 @@
hardened_malloc-12-2.el9_2.security.x86_64
hardened_malloc-12-3.el9_2.security
12
This package ships the "normal" and "light" configurations of the GrapheneOS hardened_malloc project. The official README.md in the upstream project documents security properties and explains the differences between the regular and light variants.
It is strongly reccomended to read all documentation here before deploying this package on your infrastructure.
-In order to support the large amount of mappings caused by guard slabs and large allocation guard guard regions, the vm.max_map_count
sysctl is increased as part of package installation to 1048576
in /etc/sysctl.d/hardened_malloc.conf
. The package ships 2 builds of hardened_malloc, the regular variant, which is located at /usr/lib64/libhardened_malloc.so
and can be preloaded using the hardened_malloc_preload.sh
script, and the light variant, which is located at /usr/lib64/libhardened_malloc-light.so
and can be preloaded using the hardened_malloc_light_preload.sh
script. The preload scripts adds the relevant library to LD_PRELOAD
and then loads the desired binary, as shown in the following example: hardened_malloc_preload.sh uname
. Users may choose to set an OS-wide LD_PRELOAD
with hardened_malloc. This can be done by adding the desired library, for example, /usr/lib64/libhardened_malloc.so
, into your /etc/ld.so.preload
. Be aware that applications where AT_SECURE
is set, this approach will not work.
It is suggested that if you wish to deploy hardened_malloc systemwide, that you deploy it in your LD_PRELOAD
with the normal variant globally, and then for applications which are peformance sensitive, or which do not work, try them individually with the light variant using the preload script or by setting LD_PRELOAD
within a systemd service namespace, and then if that does not resolve your issue, disabling it by running the program in it's own systemd service namespace.
In order to support the large amount of mappings caused by guard slabs and large allocation guard regions, the vm.max_map_count
sysctl is increased as part of package installation to 1048576
in /etc/sysctl.d/hardened_malloc.conf
. You'll need to run sysctl -p /etc/sysctl.d/hardened_malloc.conf
for this change to take effect without a reboot. Incidentally, Fedora 39 made the same change, so it's not an exotic configuration.
The package ships 2 builds of hardened_malloc
, the regular variant, which is located at /usr/lib64/libhardened_malloc.so
and can be preloaded using the hardened_malloc_preload.sh
script, and the light variant, which is located at /usr/lib64/libhardened_malloc-light.so
and can be preloaded using the hardened_malloc_light_preload.sh
script. The preload scripts add the relevant library to LD_PRELOAD
and then load the desired binary, as shown in the following example: hardened_malloc_preload.sh cat /proc/self/maps
.
Users may choose to set an OS-wide LD_PRELOAD
with hardened_malloc
. This can be done by adding the desired library, for example, /usr/lib64/libhardened_malloc.so
, into your /etc/ld.so.preload
. Be aware that for applications where AT_SECURE
is set, this approach will not work.
It is suggested that if you wish to deploy hardened_malloc
systemwide, that you deploy it in your LD_PRELOAD
with the normal variant globally, and then for applications which are performance sensitive, or which fail with the normal variant, try them individually with the light variant using the preload script or by setting LD_PRELOAD
within a systemd service namespace. If that does not resolve your issue, try disabling hardened_malloc
by running the program in its own systemd service namespace.
As with all infrastructure changes, ensure you test in your staging environment extensively before deploying into production. Many packages and projects suffer from memory corruption bugs, which hardened_malloc uncovers, which when running under glibc, are not encountered during operation. Some applications may crash during usage, completely break, or break when running with certain configurations. Bugs in packages are typically the result of upstream project bugs, and should be reported there. In some cases these bugs are fixed in later versions in the upstream project, in which case the bug is an issue with Rocky Linux, and should be reported to Rocky Linux, so that the patch may be included.
+As with all infrastructure changes, ensure you test in your staging environment extensively before deploying into production. Many packages and projects suffer from memory corruption bugs, which when running under glibc are not encountered during operation, but which hardened_malloc
uncovers. Some applications may crash during usage, completely break, or break when running with certain configurations. Bugs in packages are typically a result of upstream project bugs, and should be reported there. In some cases these bugs are fixed in later versions in the upstream project, in which case the bug is an issue with Rocky Linux, and should be reported to Rocky Linux and its upstream distribution, so that the patch may be included.
By nature of relying on LD_PRELOAD
, if you have EDR software on your server, it may falsely send alerts when using hardened_malloc. If it doesn't, your EDR is probably terrible or misconfigured.
By nature of relying on LD_PRELOAD
, if you have EDR software on your server, it may falsely send alerts when using hardened_malloc
. If it doesn't, your EDR is probably terrible or misconfigured.
* Wed Nov 8 2023 flawedworld <flawedworld@flawed.world> 12-2
+* Tue Nov 14 2023 Solar Designer <solar@openwall.com> 12-3
+- Package hardened_malloc_light_preload.sh
+- Disable arm64 building for now (fix didn't work)
+
+* Wed Nov 8 2023 flawedworld <flawedworld@flawed.world> 12-2
- Set CONFIG_NATIVE to false
- Mark libraries as executable (change to 755 permissions)
- Add hardened_malloc_light_preload.sh
@@ -560,7 +566,7 @@
Last update:
- November 8, 2023
+ November 15, 2023
diff --git a/search/search_index.json b/search/search_index.json
index d506245..bb6f3dd 100644
--- a/search/search_index.json
+++ b/search/search_index.json
@@ -1 +1 @@
-{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"SIG/Security Wiki","text":"The Security SIG repositories provide extra security-related packages and security-hardened override packages (replacing those from the main distribution) for Rocky Linux and other Enterprise Linux (EL) distributions.
"},{"location":"#responsibilities","title":"Responsibilities","text":"Developing and maintaining various security related packages that are not in upstream EL. Identifying, developing, and maintaining security hardening changes relative to upstream EL packages. Occasionally including/backporting additional security fixes that are not yet in upstream EL packages. Contributing to the respective upstreams where practical.
"},{"location":"#repo-installation","title":"Repo Installation","text":""},{"location":"#on-rocky-linux","title":"On Rocky Linux","text":"dnf install rocky-release-security\n
"},{"location":"#on-another-compatible-el-distro","title":"On another compatible EL distro","text":"Download the release package containing our repository configuration file and package signing public key. Use the version that corresponds to the major version of your EL distro.
- rocky-release-security-9
- rocky-release-security-8
Verify the package file's SHA-256 digest with sha256sum
. The currently expected digests are:
8daf0934c8b5cfce1f5c2dc53ea0118102940bf307c7cc8863ab718696863da6 rocky-release-security-9-2.el9.noarch.rpm\n15aebef7257d4ff3c59a3b4e45acf8fae9894a10ddd2c924dfd521033337e96c rocky-release-security-8-2.el8.noarch.rpm\n
This isn't as secure as checking the package signature would be if you previously had our package signing public key, but on another distro you probably don't have that yet, so checking the digest against its copy obtained from this separate website is a best-effort measure.
Install the package with rpm -U --nodeps
. The --nodeps
option is needed to bypass the dependency check on our rocky-release
package. In essense, you're manually confirming to rpm
that you're installing on a compatible distro.
"},{"location":"#packages","title":"Packages","text":""},{"location":"#extra-packages-for-el8-and-el9","title":"Extra packages (for EL8 and EL9)","text":" - lkrg (Linux Kernel Runtime Guard)
- passwdqc (Password/passphrase strength checking and policy enforcement)
"},{"location":"#extra-packages-currently-only-for-el9","title":"Extra packages (currently only for EL9)","text":" - hardened_malloc (Security-focused memory allocator providing the malloc API, and a script to preload it into existing program binaries)
"},{"location":"#override-packages-currently-only-for-el9","title":"Override packages (currently only for EL9)","text":" - glibc (adds many security-hardening changes originating from Owl and ALT Linux on top of EL package)
- openssh (fewer shared libraries exposed in sshd processes while otherwise fully matching EL package's functionality)
The changes are described in more detail on the per-package wiki pages linked above, as well as in the package changelogs. More packages/changes are planned, including override packages also for EL8.
"},{"location":"#source-code","title":"Source code","text":"Just like for other Rocky Linux SIGs, the source trees for Security SIG packages are maintained in per-package git repositories. Each repository contains branches r8
and/or r9
corresponding to target EL version.
"},{"location":"#contributing","title":"Contributing","text":"If anyone else wants to join this effort - in any capacity including development, maintenance, testing, documentation, user support, spreading the word, or something else - please join the Mattermost channel below and let us know!
We also welcome well-reasoned suggestions/feedback/preferences on direction we should take (e.g., only making changes on top of EL's vs. offering newer upstream versions), what else to package, and what other changes to include.
"},{"location":"#meetings-communications","title":"Meetings / Communications","text":"We hang out in our Security Mattermost channel.
"},{"location":"#members","title":"Members","text":"Some of the people active with setting up this SIG so far:
Name Mattermost Name @flawedworld Fredrik Nystr\u00f6m @nscfreny Louis Abel @label Mustafa @mustafa Neil Hanlon @neil Scott Shinn @atomicturtle Solar Designer @solardiz"},{"location":"packages/glibc/","title":"Override package: glibc","text":""},{"location":"packages/glibc/#el9","title":"EL9","text":" - Version
2.34-60.7.el9_2.security.0.3
- Based on
2.34-60.el9_2.7
"},{"location":"packages/glibc/#changes-summary","title":"Changes summary","text":" - Distrust and/or unset many more environment variables used by current and previous glibc versions when running SUID/SGID/setcap (Owl via ALT Linux)
- When
syslog(3)
/vsyslog(3)
is called by a SUID/SGID/setcap program without a preceding call to openlog(3)
, don't blindly trust __progname
for the syslog ident (Owl via ALT Linux) - In
syslog(3)/vsyslog(3)
use asctime_r(3)+localtime_r(3)
instead of strftime_r()
so that month names don't depend on current locale settings (Owl via ALT Linux) - In
asprintf(3)/vasprintf(3)
reset the pointer to NULL on error, like BSDs do, so that the caller wouldn't access memory over an uninitialized or stale pointer (ALT Linux) - In
fread(3)/fwrite(3)
check for potential integer overflow (ALT Linux) - In
tmpfile(3)
use the TMPDIR
environment variable (when not running SUID/SGID/setcap) (ALT Linux)
"},{"location":"packages/glibc/#known-effective-vulnerability-mitigations-and-fixes","title":"Known-effective vulnerability mitigations and fixes","text":"2.34-60.el9_2.security.0.2
included mitigations sufficient to avoid security exposure of CVE-2023-4911 and a backport of upstream glibc fix of CVE-2023-4527 that was not yet in upstream EL. In the update to 2.34-60.7.el9_2.security.0.3
, we retained the mitigations while rebasing on upstream EL's package with upstream fixes for these vulnerabilities (and more).
In general, inclusion of additional security fixes will be \"reverted\" if and when those get included in upstream EL packages that we rebase our changes on.
"},{"location":"packages/glibc/#change-log","title":"Change log","text":"* Fri Oct 6 2023 Solar Designer <solar@openwall.com> - 2.34-60.7.el9.security.0.3\n- Rebase on 2.34-60.7, drop \"our\" CVE-2023-4527 patch in favor of RH's\n\n* Mon Sep 25 2023 Florian Weimer <fweimer@redhat.com> - 2.34-60.7\n- Fix memory leak regression in getaddrinfo (RHEL-2425)\n\n* Tue Sep 19 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.6\n- CVE-2023-4911 glibc: buffer overflow in ld.so leading to privilege escalation (RHEL-2999)\n\n* Tue Sep 19 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.5\n- Revert: Always call destructors in reverse constructor order (RHEL-3385)\n\n* Mon Sep 18 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.34-60.4\n- CVE-2023-4806 glibc: potential use-after-free in getaddrinfo (RHEL-2425)\n\n* Fri Sep 15 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.34-60.3\n- CVE-2023-4813: potential use-after-free in gaih_inet (RHEL-2437)\n\n* Fri Sep 15 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.2\n- CVE-2023-4527: Stack read overflow in getaddrinfo in no-aaaa mode (#2234715)\n\n* Wed Sep 13 2023 Florian Weimer <fweimer@redhat.com> - 2.34-60.1\n- Always call destructors in reverse constructor order (RHEL-3385)\n\n* Mon Oct 2 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.2\n- Add glibc-owl-alt-sanitize-env.patch stitched from several ALT Linux commits\n as none of their revisions matched this package's set of backports as-is\n- Add glibc-upstream-no-aaaa-CVE-2023-4527.patch based on upstream commit\n bd77dd7e73e3530203be1c52c8a29d08270cb25d fixing\n CVE-2023-4527: Stack read overflow with large TCP responses in no-aaaa mode\n\n* Tue Sep 26 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.1\n- Revise the texinfo documentation edit of glibc-2.34-alt-asprintf.patch via\n glibc-2.34-rocky-asprintf.patch\n\n* Sat Sep 23 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.0\n- Add some of the patches from ALT Linux as of when they were at 2.34:\n https://git.altlinux.org/gears/g/glibc.git\n git show 5fa32fb0f8509f4b2b1105d71b45966dfbadc099 > glibc-2.34-alt-tmpfile.patch\n git show f97e5d60a6a4c9cb64e3b9ee6f5113969cf07d87 > glibc-2.34-alt-asprintf.patch\n git show cd45d0f74560325cc48aedb9f56881270ab3dfab > glibc-2.34-alt-libio-bound.patch\n git show 436eb1017c04aee3a553c2868d00a4b046e5e394 > glibc-2.34-owl-alt-syslog-ident.patch\n git show 03a86c234873723c26b7e387c498c1332c223968 > glibc-2.34-mjt-owl-alt-syslog-timestamp.patch\n
"},{"location":"packages/hardened_malloc/","title":"Extra package: hardened_malloc","text":""},{"location":"packages/hardened_malloc/#el9","title":"EL9","text":" - Version
hardened_malloc-12-2.el9_2.security.x86_64
- Based on upstream version
12
- No plans to support older Rocky Linux versions due to glibc being too old
"},{"location":"packages/hardened_malloc/#package-summary","title":"Package summary","text":"This package ships the \"normal\" and \"light\" configurations of the GrapheneOS hardened_malloc project. The official README.md in the upstream project documents security properties and explains the differences between the regular and light variants.
"},{"location":"packages/hardened_malloc/#usage-in-rocky-linux","title":"Usage in Rocky Linux","text":"It is strongly reccomended to read all documentation here before deploying this package on your infrastructure.
In order to support the large amount of mappings caused by guard slabs and large allocation guard guard regions, the vm.max_map_count
sysctl is increased as part of package installation to 1048576
in /etc/sysctl.d/hardened_malloc.conf
. The package ships 2 builds of hardened_malloc, the regular variant, which is located at /usr/lib64/libhardened_malloc.so
and can be preloaded using the hardened_malloc_preload.sh
script, and the light variant, which is located at /usr/lib64/libhardened_malloc-light.so
and can be preloaded using the hardened_malloc_light_preload.sh
script. The preload scripts adds the relevant library to LD_PRELOAD
and then loads the desired binary, as shown in the following example: hardened_malloc_preload.sh uname
. Users may choose to set an OS-wide LD_PRELOAD
with hardened_malloc. This can be done by adding the desired library, for example, /usr/lib64/libhardened_malloc.so
, into your /etc/ld.so.preload
. Be aware that applications where AT_SECURE
is set, this approach will not work.
It is suggested that if you wish to deploy hardened_malloc systemwide, that you deploy it in your LD_PRELOAD
with the normal variant globally, and then for applications which are peformance sensitive, or which do not work, try them individually with the light variant using the preload script or by setting LD_PRELOAD
within a systemd service namespace, and then if that does not resolve your issue, disabling it by running the program in it's own systemd service namespace.
"},{"location":"packages/hardened_malloc/#bugs-uncovered-by-hardened_malloc","title":"Bugs uncovered by hardened_malloc","text":"As with all infrastructure changes, ensure you test in your staging environment extensively before deploying into production. Many packages and projects suffer from memory corruption bugs, which hardened_malloc uncovers, which when running under glibc, are not encountered during operation. Some applications may crash during usage, completely break, or break when running with certain configurations. Bugs in packages are typically the result of upstream project bugs, and should be reported there. In some cases these bugs are fixed in later versions in the upstream project, in which case the bug is an issue with Rocky Linux, and should be reported to Rocky Linux, so that the patch may be included.
Package name Latest version tested Normal variant Light variant php php-8.0.30-1.el9_2.x86_64 Broken Broken php php-8.1.14-1.module+el9.2.0+15232+36037ab0.x86_64 Broken Broken sssd sssd-2.8.2-3.el9_2.x86_64 Broken Broken"},{"location":"packages/hardened_malloc/#potential-for-issues-with-edr","title":"Potential for issues with EDR","text":"By nature of relying on LD_PRELOAD
, if you have EDR software on your server, it may falsely send alerts when using hardened_malloc. If it doesn't, your EDR is probably terrible or misconfigured.
"},{"location":"packages/hardened_malloc/#change-log","title":"Change log","text":"* Wed Nov 8 2023 flawedworld <flawedworld@flawed.world> 12-2\n- Set CONFIG_NATIVE to false\n- Mark libraries as executable (change to 755 permissions)\n- Add hardened_malloc_light_preload.sh\n- Fix arm64 building\n\n* Sat Oct 28 2023 flawedworld <flawedworld@flawed.world> 12-1\n- Initial packaging for hardened_malloc version 12, co-authored-by\n Scott Shinn (atomicturtle) and Solar Designer\n
"},{"location":"packages/openssh/","title":"Override package: openssh","text":""},{"location":"packages/openssh/#el9","title":"EL9","text":" - Version
8.7p1-30.el9_2.security.0.2
- Based on
8.7p1-30.el9_2
"},{"location":"packages/openssh/#changes-summary","title":"Changes summary","text":" - Instead of linking against
libsystemd
, load it dynamically in a temporary child process to avoid polluting actual sshd
's address space with that library and its many dependencies (shortens ldd sshd
output from 28 to 20 lines)
"},{"location":"packages/openssh/#change-log","title":"Change log","text":"* Sat Oct 07 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.2\n- Load libsystemd.so.0, not libsystemd.so, as the latter is only provided by\n systemd-devel\n\n* Mon Aug 28 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.1\n- Instead of linking against libsystemd, load it dynamically in a temporary\n child process to avoid polluting actual sshd's address space with that\n library and its many dependencies (shortens \"ldd sshd\" from 28 to 20 lines)\n
"}]}
\ No newline at end of file
+{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"SIG/Security Wiki","text":"The Security SIG repositories provide extra security-related packages and security-hardened override packages (replacing those from the main distribution) for Rocky Linux and other Enterprise Linux (EL) distributions.
"},{"location":"#responsibilities","title":"Responsibilities","text":"Developing and maintaining various security related packages that are not in upstream EL. Identifying, developing, and maintaining security hardening changes relative to upstream EL packages. Occasionally including/backporting additional security fixes that are not yet in upstream EL packages. Contributing to the respective upstreams where practical.
"},{"location":"#repo-installation","title":"Repo Installation","text":""},{"location":"#on-rocky-linux","title":"On Rocky Linux","text":"dnf install rocky-release-security\n
"},{"location":"#on-another-compatible-el-distro","title":"On another compatible EL distro","text":"Download the release package containing our repository configuration file and package signing public key. Use the version that corresponds to the major version of your EL distro.
- rocky-release-security-9
- rocky-release-security-8
Verify the package file's SHA-256 digest with sha256sum
. The currently expected digests are:
8daf0934c8b5cfce1f5c2dc53ea0118102940bf307c7cc8863ab718696863da6 rocky-release-security-9-2.el9.noarch.rpm\n15aebef7257d4ff3c59a3b4e45acf8fae9894a10ddd2c924dfd521033337e96c rocky-release-security-8-2.el8.noarch.rpm\n
This isn't as secure as checking the package signature would be if you previously had our package signing public key, but on another distro you probably don't have that yet, so checking the digest against its copy obtained from this separate website is a best-effort measure.
Install the package with rpm -U --nodeps
. The --nodeps
option is needed to bypass the dependency check on our rocky-release
package. In essense, you're manually confirming to rpm
that you're installing on a compatible distro.
"},{"location":"#packages","title":"Packages","text":""},{"location":"#extra-packages-for-el8-and-el9","title":"Extra packages (for EL8 and EL9)","text":" - lkrg (Linux Kernel Runtime Guard)
- passwdqc (Password/passphrase strength checking and policy enforcement)
"},{"location":"#extra-packages-currently-only-for-el9","title":"Extra packages (currently only for EL9)","text":" - hardened_malloc (Security-focused memory allocator providing the malloc API, and a script to preload it into existing program binaries)
"},{"location":"#override-packages-currently-only-for-el9","title":"Override packages (currently only for EL9)","text":" - glibc (adds many security-hardening changes originating from Owl and ALT Linux on top of EL package)
- openssh (fewer shared libraries exposed in sshd processes while otherwise fully matching EL package's functionality)
The changes are described in more detail on the per-package wiki pages linked above, as well as in the package changelogs. More packages/changes are planned, including override packages also for EL8.
"},{"location":"#source-code","title":"Source code","text":"Just like for other Rocky Linux SIGs, the source trees for Security SIG packages are maintained in per-package git repositories. Each repository contains branches r8
and/or r9
corresponding to target EL version.
"},{"location":"#contributing","title":"Contributing","text":"If anyone else wants to join this effort - in any capacity including development, maintenance, testing, documentation, user support, spreading the word, or something else - please join the Mattermost channel below and let us know!
We also welcome well-reasoned suggestions/feedback/preferences on direction we should take (e.g., only making changes on top of EL's vs. offering newer upstream versions), what else to package, and what other changes to include.
"},{"location":"#meetings-communications","title":"Meetings / Communications","text":"We hang out in our Security Mattermost channel.
"},{"location":"#members","title":"Members","text":"Some of the people active with setting up this SIG so far:
Name Mattermost Name @flawedworld Fredrik Nystr\u00f6m @nscfreny Louis Abel @label Mustafa @mustafa Neil Hanlon @neil Scott Shinn @atomicturtle Solar Designer @solardiz"},{"location":"packages/glibc/","title":"Override package: glibc","text":""},{"location":"packages/glibc/#el9","title":"EL9","text":" - Version
2.34-60.7.el9_2.security.0.3
- Based on
2.34-60.el9_2.7
"},{"location":"packages/glibc/#changes-summary","title":"Changes summary","text":" - Distrust and/or unset many more environment variables used by current and previous glibc versions when running SUID/SGID/setcap (Owl via ALT Linux)
- When
syslog(3)
/vsyslog(3)
is called by a SUID/SGID/setcap program without a preceding call to openlog(3)
, don't blindly trust __progname
for the syslog ident (Owl via ALT Linux) - In
syslog(3)/vsyslog(3)
use asctime_r(3)+localtime_r(3)
instead of strftime_r()
so that month names don't depend on current locale settings (Owl via ALT Linux) - In
asprintf(3)/vasprintf(3)
reset the pointer to NULL on error, like BSDs do, so that the caller wouldn't access memory over an uninitialized or stale pointer (ALT Linux) - In
fread(3)/fwrite(3)
check for potential integer overflow (ALT Linux) - In
tmpfile(3)
use the TMPDIR
environment variable (when not running SUID/SGID/setcap) (ALT Linux)
"},{"location":"packages/glibc/#known-effective-vulnerability-mitigations-and-fixes","title":"Known-effective vulnerability mitigations and fixes","text":"2.34-60.el9_2.security.0.2
included mitigations sufficient to avoid security exposure of CVE-2023-4911 and a backport of upstream glibc fix of CVE-2023-4527 that was not yet in upstream EL. In the update to 2.34-60.7.el9_2.security.0.3
, we retained the mitigations while rebasing on upstream EL's package with upstream fixes for these vulnerabilities (and more).
In general, inclusion of additional security fixes will be \"reverted\" if and when those get included in upstream EL packages that we rebase our changes on.
"},{"location":"packages/glibc/#change-log","title":"Change log","text":"* Fri Oct 6 2023 Solar Designer <solar@openwall.com> - 2.34-60.7.el9.security.0.3\n- Rebase on 2.34-60.7, drop \"our\" CVE-2023-4527 patch in favor of RH's\n\n* Mon Sep 25 2023 Florian Weimer <fweimer@redhat.com> - 2.34-60.7\n- Fix memory leak regression in getaddrinfo (RHEL-2425)\n\n* Tue Sep 19 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.6\n- CVE-2023-4911 glibc: buffer overflow in ld.so leading to privilege escalation (RHEL-2999)\n\n* Tue Sep 19 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.5\n- Revert: Always call destructors in reverse constructor order (RHEL-3385)\n\n* Mon Sep 18 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.34-60.4\n- CVE-2023-4806 glibc: potential use-after-free in getaddrinfo (RHEL-2425)\n\n* Fri Sep 15 2023 Siddhesh Poyarekar <siddhesh@redhat.com> - 2.34-60.3\n- CVE-2023-4813: potential use-after-free in gaih_inet (RHEL-2437)\n\n* Fri Sep 15 2023 Carlos O'Donell <carlos@redhat.com> - 2.34-60.2\n- CVE-2023-4527: Stack read overflow in getaddrinfo in no-aaaa mode (#2234715)\n\n* Wed Sep 13 2023 Florian Weimer <fweimer@redhat.com> - 2.34-60.1\n- Always call destructors in reverse constructor order (RHEL-3385)\n\n* Mon Oct 2 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.2\n- Add glibc-owl-alt-sanitize-env.patch stitched from several ALT Linux commits\n as none of their revisions matched this package's set of backports as-is\n- Add glibc-upstream-no-aaaa-CVE-2023-4527.patch based on upstream commit\n bd77dd7e73e3530203be1c52c8a29d08270cb25d fixing\n CVE-2023-4527: Stack read overflow with large TCP responses in no-aaaa mode\n\n* Tue Sep 26 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.1\n- Revise the texinfo documentation edit of glibc-2.34-alt-asprintf.patch via\n glibc-2.34-rocky-asprintf.patch\n\n* Sat Sep 23 2023 Solar Designer <solar@openwall.com> - 2.34-60.el9.security.0.0\n- Add some of the patches from ALT Linux as of when they were at 2.34:\n https://git.altlinux.org/gears/g/glibc.git\n git show 5fa32fb0f8509f4b2b1105d71b45966dfbadc099 > glibc-2.34-alt-tmpfile.patch\n git show f97e5d60a6a4c9cb64e3b9ee6f5113969cf07d87 > glibc-2.34-alt-asprintf.patch\n git show cd45d0f74560325cc48aedb9f56881270ab3dfab > glibc-2.34-alt-libio-bound.patch\n git show 436eb1017c04aee3a553c2868d00a4b046e5e394 > glibc-2.34-owl-alt-syslog-ident.patch\n git show 03a86c234873723c26b7e387c498c1332c223968 > glibc-2.34-mjt-owl-alt-syslog-timestamp.patch\n
"},{"location":"packages/hardened_malloc/","title":"Extra package: hardened_malloc","text":""},{"location":"packages/hardened_malloc/#el9","title":"EL9","text":" - Version
hardened_malloc-12-3.el9_2.security
- Based on upstream version
12
- No plans to support older Rocky Linux versions due to glibc being too old
"},{"location":"packages/hardened_malloc/#package-summary","title":"Package summary","text":"This package ships the \"normal\" and \"light\" configurations of the GrapheneOS hardened_malloc project. The official README.md in the upstream project documents security properties and explains the differences between the regular and light variants.
"},{"location":"packages/hardened_malloc/#usage-in-rocky-linux","title":"Usage in Rocky Linux","text":"It is strongly reccomended to read all documentation here before deploying this package on your infrastructure.
In order to support the large amount of mappings caused by guard slabs and large allocation guard regions, the vm.max_map_count
sysctl is increased as part of package installation to 1048576
in /etc/sysctl.d/hardened_malloc.conf
. You'll need to run sysctl -p /etc/sysctl.d/hardened_malloc.conf
for this change to take effect without a reboot. Incidentally, Fedora 39 made the same change, so it's not an exotic configuration.
The package ships 2 builds of hardened_malloc
, the regular variant, which is located at /usr/lib64/libhardened_malloc.so
and can be preloaded using the hardened_malloc_preload.sh
script, and the light variant, which is located at /usr/lib64/libhardened_malloc-light.so
and can be preloaded using the hardened_malloc_light_preload.sh
script. The preload scripts add the relevant library to LD_PRELOAD
and then load the desired binary, as shown in the following example: hardened_malloc_preload.sh cat /proc/self/maps
.
Users may choose to set an OS-wide LD_PRELOAD
with hardened_malloc
. This can be done by adding the desired library, for example, /usr/lib64/libhardened_malloc.so
, into your /etc/ld.so.preload
. Be aware that for applications where AT_SECURE
is set, this approach will not work.
It is suggested that if you wish to deploy hardened_malloc
systemwide, that you deploy it in your LD_PRELOAD
with the normal variant globally, and then for applications which are performance sensitive, or which fail with the normal variant, try them individually with the light variant using the preload script or by setting LD_PRELOAD
within a systemd service namespace. If that does not resolve your issue, try disabling hardened_malloc
by running the program in its own systemd service namespace.
"},{"location":"packages/hardened_malloc/#bugs-uncovered-by-hardened_malloc","title":"Bugs uncovered by hardened_malloc","text":"As with all infrastructure changes, ensure you test in your staging environment extensively before deploying into production. Many packages and projects suffer from memory corruption bugs, which when running under glibc are not encountered during operation, but which hardened_malloc
uncovers. Some applications may crash during usage, completely break, or break when running with certain configurations. Bugs in packages are typically a result of upstream project bugs, and should be reported there. In some cases these bugs are fixed in later versions in the upstream project, in which case the bug is an issue with Rocky Linux, and should be reported to Rocky Linux and its upstream distribution, so that the patch may be included.
Package name Latest version tested Normal variant Light variant php php-8.0.30-1.el9_2.x86_64 Broken Broken php php-8.1.14-1.module+el9.2.0+15232+36037ab0.x86_64 Broken Broken sssd sssd-2.8.2-3.el9_2.x86_64 Broken Broken"},{"location":"packages/hardened_malloc/#potential-for-issues-with-edr","title":"Potential for issues with EDR","text":"By nature of relying on LD_PRELOAD
, if you have EDR software on your server, it may falsely send alerts when using hardened_malloc
. If it doesn't, your EDR is probably terrible or misconfigured.
"},{"location":"packages/hardened_malloc/#change-log","title":"Change log","text":"* Tue Nov 14 2023 Solar Designer <solar@openwall.com> 12-3\n- Package hardened_malloc_light_preload.sh\n- Disable arm64 building for now (fix didn't work)\n\n* Wed Nov 8 2023 flawedworld <flawedworld@flawed.world> 12-2\n- Set CONFIG_NATIVE to false\n- Mark libraries as executable (change to 755 permissions)\n- Add hardened_malloc_light_preload.sh\n- Fix arm64 building\n\n* Sat Oct 28 2023 flawedworld <flawedworld@flawed.world> 12-1\n- Initial packaging for hardened_malloc version 12, co-authored-by\n Scott Shinn (atomicturtle) and Solar Designer\n
"},{"location":"packages/openssh/","title":"Override package: openssh","text":""},{"location":"packages/openssh/#el9","title":"EL9","text":" - Version
8.7p1-30.el9_2.security.0.2
- Based on
8.7p1-30.el9_2
"},{"location":"packages/openssh/#changes-summary","title":"Changes summary","text":" - Instead of linking against
libsystemd
, load it dynamically in a temporary child process to avoid polluting actual sshd
's address space with that library and its many dependencies (shortens ldd sshd
output from 28 to 20 lines)
"},{"location":"packages/openssh/#change-log","title":"Change log","text":"* Sat Oct 07 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.2\n- Load libsystemd.so.0, not libsystemd.so, as the latter is only provided by\n systemd-devel\n\n* Mon Aug 28 2023 Solar Designer <solar@openwall.com> 8.7p1-30.el9.security.0.1\n- Instead of linking against libsystemd, load it dynamically in a temporary\n child process to avoid polluting actual sshd's address space with that\n library and its many dependencies (shortens \"ldd sshd\" from 28 to 20 lines)\n
"}]}
\ No newline at end of file
diff --git a/sitemap.xml b/sitemap.xml
index b959e52..77b97ea 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2,22 +2,22 @@
https://sig-security.rocky.page/
- 2023-11-14
+ 2023-11-15
daily
https://sig-security.rocky.page/packages/glibc/
- 2023-11-14
+ 2023-11-15
daily
https://sig-security.rocky.page/packages/hardened_malloc/
- 2023-11-14
+ 2023-11-15
daily
https://sig-security.rocky.page/packages/openssh/
- 2023-11-14
+ 2023-11-15
daily
\ No newline at end of file
diff --git a/sitemap.xml.gz b/sitemap.xml.gz
index 7993d2e358fa5eb746d916f1f4f79cacb7dea872..5d7919bf6043ec6a60e724d1bf07e55ee4deee32 100644
GIT binary patch
literal 249
zcmV;ga|8r?{Wo=<_E_iKh0M(MgPQx$^hVOfdD)+|i5E7s^yYU2Y
zMj*7J@v7*y0Qn327{Jhu<*
zAa=tkd&1IGbD)vgQqmK^JkOk5!AU0KF&iLd>q2l9q2rHC?3!9@z-2nu;G+_23e^~L
zrX^IT?8?G(RL6xUX%GfjUE3o`Wr|wtyZv3;_icY)Emv)0Q&t9p9~nP|md-B&Y?KQP
z{NnrtEJ<~&oxphau5N(S%B(StiQ&B1{`LFUH+VRFPrmuWOfH6z^}J&Z1{JjnW@N7~&+P*{
zh~03?p0G649B5>=l=K8J&od`iaFU65%mzr=x)5AN==dWOyQbC}aGB0E_^8C1LN$h*
zX$jRSyRz^c)p6lT8iWB>*Y-$KnW7f^ZhzPIecRtx%T?Rhl$F8YN5)T~rSr=G8|6X+
yzc_yZOHv(cCotZ