package/{glibc, localedef}: security bump version 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da
PATCH 1/1 package/{glibc, localedef}: security bump version 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da
Fixes the following vulenerabilities:
- CVE-2026-84243:
The gettext family of functions in the GNU C Library version 2.0 and later accept LANGUAGE environment variable entries that contain '/' or that are equal to "..", unless the program is setuid or setgid (AT_SECURE). An attacker who can set LANGUAGE in the environment of a program that uses gettext can make it load a message catalog (.mo file) from an arbitrary location in the file system. A crafted .mo file can crash the program through out-of-range offsets, or supply translations whose format directives do not match the arguments passed by the program. That causes undefined behaviour in the printf family of functions and may allow arbitrary code execution with the privileges of the program. The safety of message catalogs relies on them being installed in trusted, read-only locations, and the directory traversal bypasses this. The fix for CVE-2014-0475 rejects ".." path components in locale names passed to setlocale or taken from the LC_ALL, LC_* and LANG environment variables. gettext reads LANGUAGE directly and appends each colon-separated entry to the message catalog directory, so that fix did not cover LANGUAGE. LANGUAGE is only used when the LC_MESSAGES locale is not "C", "C.<encoding>" or "POSIX", so the attacker must also be able to select another installed locale, for example through LANG or LC_ALL. Exploitation also requires that the attacker can place the crafted file in a location readable by the target program, and that the environment crosses a trust boundary without the program running as AT_SECURE. An example is an SSH server that accepts LANGUAGE and LANG from clients through the AcceptEnv directive and restricts an account to a forced command; the attacker may use this to escape the restriction.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-84243
- https://gitlab.com/gnutools/glibc/-/commit/bbdd55995f66a155ac043a49a8084e2414f96cde
- CVE-2026-100290:
The regcomp and regexec functions in the GNU C Library version 2.3 to version 2.44 may read freed memory and free the same heap block twice when a memory allocation fails while a regular expression is compiled or matched. The re_dfa_add_node (the NFA node table) and build_range_exp (bracket ranges) grow several arrays with consecutive realloc calls and store the new pointers only after all of them succeed. When a later call fails, the pattern buffer keeps pointers to blocks that were already freed, and the error cleanup frees them again. In regexec, the back-reference cache (match_ctx_add_entry) frees its array when a realloc fails but keeps the pointer, which is freed again on the error path. An attacker does not need to supply a crafted regular expression: patterns large enough to grow these arrays are common. The failure has to hit a specific allocation, though, so the issue can only be reached when the system is already under memory pressure. An attacker who supplies the pattern or the subject string has little control over which allocation fails, so the expected impact is a crash of the process. This issue affects all architectures and ABIs supported by the GNU C Library.
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-100290
- https://gitlab.com/gnutools/glibc/-/commit/92b93a3bc26c9f56e8347bc47ec047f9639fc6da
(alternative to commit 43f47f795cee1422416b4f7c7d1fa46cdf54acd5)
--- package/glibc/glibc.hash | 2 +- package/glibc/glibc.mk | 8 +++++++- package/localedef/localedef.mk | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-)
package/glibc/glibc.hash +1 -1
@@ -1,5 +1,5 @@ # Locally calculated (fetched from git) -sha256 8b3bbb074671878413901ece2b757b6196f07953f2205ba95ec1a6f79b799790 glibc-2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d-git4.tar.gz +sha256 8b3bbb074671878413901ece2b757b6196f07953f2205ba95ec1a6f79b799790 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da-git4.tar.gz # Hashes for license files sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
package/glibc/glibc.mk +7 -1
@@ -7,7 +7,7 @@ # Generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- # When updating the version, please also update localedef -GLIBC_VERSION = 2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d +GLIBC_VERSION = 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da GLIBC_SITE = https://gitlab.com/gnutools/glibc.git GLIBC_SITE_METHOD = git
@@ -87,6 +87,12 @@ GLIBC_IGNORE_CVES += CVE-2026-77117 # Fixed by glibc-2.41-158-gec116a0fbedcc860631e525e70b409cf295f27da GLIBC_IGNORE_CVES += CVE-2026-80489 +# Fixed by 2.41-173-gbbdd55995f66a155ac043a49a8084e2414f96cde +GLIBC_IGNORE_CVES += CVE-2026-84243 + +# Fixed by 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da +GLIBC_IGNORE_CVES += CVE-2026-100290 + # glibc is part of the toolchain so disable the toolchain dependency GLIBC_ADD_TOOLCHAIN_DEPENDENCY = NO
package/localedef/localedef.mk +1 -1
@@ -7,7 +7,7 @@ # Use the same VERSION, SITE and LICENSE as target glibc # As in glibc.mk, generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- -LOCALEDEF_VERSION = 2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d +LOCALEDEF_VERSION = 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION)$(BR_FMT_VERSION_git).tar.gz LOCALEDEF_SITE = https://gitlab.com/gnutools/glibc.git LOCALEDEF_SITE_METHOD = git
Signature · 6 lines
2.56.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Raphaël Mélotte via buildroot
AppliedIn reply of:
Quoted 56 lines
Fixes the following vulenerabilities:
- CVE-2026-84243:
The gettext family of functions in the GNU C Library version 2.0 and later accept LANGUAGE environment variable entries that contain '/' or that are equal to "..", unless the program is setuid or setgid (
AT_SECURE). An attacker who can set LANGUAGE in the environment of a program that uses gettext can make it load a message catalog (.mo file) from an arbitrary location in the file system. A crafted .mo file can crash the program through out-of-range offsets, or supply translations whose format directives do not match the arguments passed by the program. That causes undefined behaviour in the printf family of functions and may allow arbitrary code execution with the privileges of the program. The safety of message catalogs relies on them being installed in trusted, read-only locations, and the directory traversal bypasses this. The fix for CVE-2014-0475 rejects ".." path components in locale names passed to setlocale or taken from theLC_ALL, LC_* and LANG environment variables. gettext reads LANGUAGE directly and appends each colon-separated entry to the message catalog directory, so that fix did not cover LANGUAGE. LANGUAGE is only used when theLC_MESSAGESlocale is not "C", "C.<encoding>" or "POSIX", so the attacker must also be able to select another installed locale, for example through LANG orLC_ALL. Exploitation also requires that the attacker can place the crafted file in a location readable by the target program, and that the environment crosses a trust boundary without the program running asAT_SECURE. An example is an SSH server that accepts LANGUAGE and LANG from clients through the AcceptEnv directive and restricts an account to a forced command; the attacker may use this to escape the restriction.For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-84243
- https://gitlab.com/gnutools/glibc/-/commit/bbdd55995f66a155ac043a49a8084e2414f96cde- CVE-2026-100290:
The regcomp and regexec functions in the GNU C Library version 2.3 to version 2.44 may read freed memory and free the same heap block twice when a memory allocation fails while a regular expression is compiled or matched. There_dfa_add_node(the NFA node table) andbuild_range_exp(bracket ranges) grow several arrays with consecutive realloc calls and store the new pointers only after all of them succeed. When a later call fails, the pattern buffer keeps pointers to blocks that were already freed, and the error cleanup frees them again. In regexec, the back-reference cache (match_ctx_add_entry) frees its array when a realloc fails but keeps the pointer, which is freed again on the error path. An attacker does not need to supply a crafted regular expression: patterns large enough to grow these arrays are common. The failure has to hit a specific allocation, though, so the issue can only be reached when the system is already under memory pressure. An attacker who supplies the pattern or the subject string has little control over which allocation fails, so the expected impact is a crash of the process. This issue affects all architectures and ABIs supported by the GNU C Library.
Quoted 6 lines
For more information, see:
- https://www.cve.org/CVERecord?id=CVE-2026-100290
- https://gitlab.com/gnutools/glibc/-/commit/92b93a3bc26c9f56e8347bc47ec047f9639fc6da(alternative to commit
43f47f795cee1422416b4f7c7d1fa46cdf54acd5)Signed-off-by Thomas Perale <[email protected]>
Applied to 2025.02.x. Thanks
Quoted 48 lines
--- package/glibc/glibc.hash | 2 +- package/glibc/glibc.mk | 8 +++++++- package/localedef/localedef.mk | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-)package/glibc/glibc.hash +1
-1@@ -1,5 +1,5 @@ # Locally calculated (fetched from git) -sha256 8b3bbb074671878413901ece2b757b6196f07953f2205ba95ec1a6f79b799790 glibc-2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d-git4.tar.gz +sha256 8b3bbb074671878413901ece2b757b6196f07953f2205ba95ec1a6f79b799790 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da-git4.tar.gz # Hashes for license files sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYINGpackage/glibc/glibc.mk +7
-1@@ -7,7 +7,7 @@ # Generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- # When updating the version, please also update localedef -GLIBC_VERSION = 2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d +GLIBC_VERSION = 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da GLIBC_SITE = https://gitlab.com/gnutools/glibc.git GLIBC_SITE_METHOD = git@@ -87,6 +87,12 @@ GLIBC_IGNORE_CVES += CVE-2026-77117 # Fixed by glibc-2.41-158-gec116a0fbedcc860631e525e70b409cf295f27da GLIBC_IGNORE_CVES += CVE-2026-80489 +# Fixed by 2.41-173-gbbdd55995f66a155ac043a49a8084e2414f96cde +GLIBC_IGNORE_CVES += CVE-2026-84243 + +# Fixed by 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da +GLIBC_IGNORE_CVES += CVE-2026-100290 + # glibc is part of the toolchain so disable the toolchain dependency GLIBC_ADD_TOOLCHAIN_DEPENDENCY = NOpackage/localedef/localedef.mk +0
-0
package/localedef/localedef.mk line 13
Quoted 8 lines
package/localedef/localedef.mk +1
-1@@ -7,7 +7,7 @@ # Use the same VERSION, SITE and LICENSE as target glibc # As in glibc.mk, generate version string using: # git describe --match 'glibc-*' --abbrev=40 origin/release/MAJOR.MINOR/master | cut -d '-' -f 2- -LOCALEDEF_VERSION = 2.41-167-gf247c0a2fb5b3e48a771d2d23efc9a45c64e957d +LOCALEDEF_VERSION = 2.41-174-g92b93a3bc26c9f56e8347bc47ec047f9639fc6da LOCALEDEF_SOURCE = glibc-$(LOCALEDEF_VERSION)$(BR_FMT_VERSION_git).tar.gz LOCALEDEF_SITE = https://gitlab.com/gnutools/glibc.git LOCALEDEF_SITE_METHOD = git
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot