Bugzilla – Bug 1223423
VUL-0: CVE-2024-33599: glibc: stack-based buffer overflow in netgroup cache
Last modified: 2024-06-11 08:30:53 UTC
A stack-based buffer overflow in nscd was reported and assigned CVE-2024-33599. Reference: https://sourceware.org/bugzilla/show_bug.cgi?id=31677 --- nscd/netgroupcache.c (addinnetgrX): 497 struct indataset 498 { 499 struct datahead head; 500 innetgroup_response_header resp; 501 } *dataset 502 = (struct indataset *) mempool_alloc (db, 503 sizeof (*dataset) + req->key_len, 504 1); mempool_alloc fails and returns NULL. This is possible if posix_fallocate fails and the retry fails. 505 struct indataset dataset_mem; 506 bool cacheable = true; 507 if (__glibc_unlikely (dataset == NULL)) 508 { 509 cacheable = false; 510 dataset = &dataset_mem; This structure has no room for req->key_len material. 511 } 512 513 datahead_init_pos (&dataset->head, sizeof (*dataset) + req->key_len, 514 sizeof (innetgroup_response_header), 515 he == NULL ? 0 : dh->nreloads + 1, result->head.ttl); 516 /* Set the notfound status and timeout based on the result from 517 getnetgrent. */ 518 dataset->head.notfound = result->head.notfound; 519 dataset->head.timeout = timeout; 520 521 dataset->resp.version = NSCD_VERSION; 522 dataset->resp.found = result->resp.found; 523 /* Until we find a matching entry the result is 0. */ 524 dataset->resp.result = 0; 525 526 char *key_copy = memcpy ((char *) (dataset + 1), group, req->key_len); This copies up to req->key_len material to a structure that has no storage space for it. This was detected by static code analysis. It will only happen in the case the database runs out of memory/storage while expanding the netgroup cache. The group entries overwrite other data on the stack after dataset_mem. The workaround is not to cache the netgroup if this is impacting the use of the application. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-33599 https://bugzilla.redhat.com/show_bug.cgi?id=2277202
What is the SUSE CVE score for this?
(In reply to Giuliano Belinassi from comment #1) > What is the SUSE CVE score for this? CVSSv3.1:SUSE:CVE-2024-33599:7.6:(AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H)
Regarding userspace livepatching of this bug: see https://bugzilla.suse.com/show_bug.cgi?id=1223589
This is an autogenerated message for OBS integration: This bug (1223423) was mentioned in https://build.opensuse.org/request/show/1173940 Factory / glibc
SUSE-SU-2024:1675-1: An update that solves five vulnerabilities can now be installed. Category: security (important) Bug References: 1222992, 1223423, 1223424, 1223425 CVE References: CVE-2024-2961, CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 Maintenance Incident: [SUSE:Maintenance:33854](https://smelt.suse.de/incident/33854/) Sources used: SUSE Linux Enterprise Software Development Kit 12 SP5 (src): glibc-2.22-114.34.1 SUSE Linux Enterprise High Performance Computing 12 SP5 (src): glibc-2.22-114.34.1 SUSE Linux Enterprise Server 12 SP5 (src): glibc-2.22-114.34.1 SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): glibc-2.22-114.34.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
This is an autogenerated message for OBS integration: This bug (1223423) was mentioned in https://build.opensuse.org/request/show/1175454 Factory / glibc
SUSE-SU-2024:1895-1: An update that solves four vulnerabilities can now be installed. Category: security (important) Bug References: 1221940, 1223423, 1223424, 1223425 CVE References: CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 Maintenance Incident: [SUSE:Maintenance:33620](https://smelt.suse.de/incident/33620/) Sources used: openSUSE Leap 15.3 (src): glibc-testsuite-src-2.31-150300.83.1, glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 openSUSE Leap Micro 5.3 (src): glibc-2.31-150300.83.1 openSUSE Leap Micro 5.4 (src): glibc-2.31-150300.83.1 openSUSE Leap 15.5 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro for Rancher 5.3 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro 5.3 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro for Rancher 5.4 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro 5.4 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro 5.5 (src): glibc-2.31-150300.83.1 Basesystem Module 15-SP5 (src): glibc-2.31-150300.83.1 Development Tools Module 15-SP5 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Manager Proxy 4.3 (src): glibc-2.31-150300.83.1 SUSE Manager Retail Branch Server 4.3 (src): glibc-2.31-150300.83.1 SUSE Manager Server 4.3 (src): glibc-2.31-150300.83.1 SUSE Enterprise Storage 7.1 (src): glibc-utils-src-2.31-150300.83.1, glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro 5.1 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro 5.2 (src): glibc-2.31-150300.83.1 SUSE Linux Enterprise Micro for Rancher 5.2 (src): glibc-2.31-150300.83.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2024:1977-1: An update that solves five vulnerabilities can now be installed. Category: security (important) Bug References: 1222992, 1223423, 1223424, 1223425 CVE References: CVE-2024-2961, CVE-2024-33599, CVE-2024-33600, CVE-2024-33601, CVE-2024-33602 Maintenance Incident: [SUSE:Maintenance:33857](https://smelt.suse.de/incident/33857/) Sources used: SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): glibc-2.26-150000.13.73.1 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): glibc-2.26-150000.13.73.1 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): glibc-2.26-150000.13.73.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.