OESA-2026-4939

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2026-4939
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2026-4939.json
JSON Data
https://api.osv.dev/v1/vulns/OESA-2026-4939
Upstream
CVE (2)
Published
2026-11-19T01:43:16Z
Modified
2026-11-19T02:00:16Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
glibc security update
Details

The GNU C Library project provides the core libraries for the GNU system and GNU/Linux systems, as well as many other systems that use Linux as the kernel. These libraries provide critical APIs including ISO C11, POSIX.1-2008, BSD, OS-specific APIs and more. These APIs include such foundational facilities as open, read, write, malloc, printf, getaddrinfo, dlopen, pthread_create, crypt, login, exit and more.

Security Fix(es):

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.(CVE-2026-100290)

Calling the wide scanf family of functions (swscanf, fwscanf, wscanf, vswscanf, vfwscanf and vwscanf) with a %s or %[ conversion without the 'l' length modifier in the GNU C Library version 2.2 to version 2.44 writes an extra null byte one past the end of the destination array when the converted multibyte string and its terminating null byte exactly fill that array.

These conversions store each wide input character into the caller's char array as a multibyte sequence. The conversion ends with the sequence that returns to the initial shift state, which also stores the terminating null byte, and the functions then append a second null byte. A destination sized for the converted string and one terminator, as the C standard requires the caller to provide, is therefore written one byte past its end. The out-of-bounds byte is always a null byte, which may corrupt adjacent data or crash the process. An attacker who supplies the input can trigger the overflow with a string whose converted length exactly fills the destination.

The narrow scanf functions, the %ls and %l[ conversions into a wchar_t array, and the 'a' and 'm' allocation modifiers are not affected, and storing a wide scanf conversion into a narrow char array is uncommon. This issue affects all architectures and ABIs supported by the GNU C Library.(CVE-2026-115819)

Database specific
{
    "severity":  "Medium"
}
References

Affected packages

openEuler:22.03-LTS-SP4 / glibc

Package

Name
glibc
Purl
pkg:rpm/openEuler/glibc&distro=openEuler-22.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.34-191.oe2203sp4

Ecosystem specific

{
    "aarch64":  [
        "glibc-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-all-langpacks-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-common-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-compat-2.17-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-debuginfo-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-debugsource-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-debugutils-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-devel-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-locale-archive-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-locale-source-2.34-191.oe2203sp4.aarch64.rpm",
        "glibc-nss-devel-2.34-191.oe2203sp4.aarch64.rpm",
        "libnsl-2.34-191.oe2203sp4.aarch64.rpm",
        "nscd-2.34-191.oe2203sp4.aarch64.rpm",
        "nss_modules-2.34-191.oe2203sp4.aarch64.rpm"
    ],
    "noarch":  [
        "glibc-help-2.34-191.oe2203sp4.noarch.rpm"
    ],
    "src":  [
        "glibc-2.34-191.oe2203sp4.src.rpm"
    ],
    "x86_64":  [
        "glibc-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-all-langpacks-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-common-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-compat-2.17-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-debuginfo-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-debugsource-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-debugutils-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-devel-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-locale-archive-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-locale-source-2.34-191.oe2203sp4.x86_64.rpm",
        "glibc-nss-devel-2.34-191.oe2203sp4.x86_64.rpm",
        "libnsl-2.34-191.oe2203sp4.x86_64.rpm",
        "nscd-2.34-191.oe2203sp4.x86_64.rpm",
        "nss_modules-2.34-191.oe2203sp4.x86_64.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2026-4939.json"