CVE-2007-4570: Input Validation

Published Sep 12, 2007
·
Updated

Algorithmic complexity vulnerability in the MCS translation daemon in mcstrans 0.2.3 allows local users to cause a denial of service (temporary daemon outage) via a large range of compartments in sensitivity labels.

Other sources

Reported via secalert:

There is an algorithmic complexity weakness in the way the MCS translation daemon handles ranges of compartments in sensitivity labels. When translating a security context that includes a range of categories separated by a period, e.g. "c0.c10", the daemon calls the substituterange() function to replace the range with an explicit declaration of each category, e.g. "c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,10". The vulnerable logic in this function is shown below (with some lines wrapped for readability):

while (tok) { if ((r=strchr(tok, '.')) !=0) { int begin=atoi(&tok[1]); ++r; int end=atoi(&r[1]); for (;begin<end+1;begin++) { tmp=sub; if (asprintf(&sub, "%sc%d,", sub, begin) < 0) { error=1; break; } free(tmp); } } else { tmp=sub; if (asprintf(&sub, "%s%s,", sub, tok) < 0) { error=1; break; } free(tmp); } tok=strtokr(NULL, ",", &ptr); }

The attacker supplies the input string for this function, and the values of 'begin' and 'end' are not checked. Consequently, by supplying an abnormally long range, an attacker can cause the program to remain in the above loop for an extremely long period of time. Since mcstransd is a single-threaded, single-process daemon, it supports only one concurrent request.

This weakness allows a local attacker to trivially prevent the daemon from responding to requests for an extended period of time (hours or days). When the mcstrans service is enabled, the system calls upon mcstransd for user logins and the execution of many programs. If mcstransd does not respond, those operations silently hang.

Red Hat

Affected Software

3 affected components
redhat Enterprise Linux=5.0-unkown
redhat Mcstrans=0.2.3
redhat Enterprise Linux=5.0-unkown

Event History

Sep 12, 2007
Data Sourced
via Red Hat·06:47 PM
DescriptionSeverityAffected Software
Nov 10, 2007
CVE Published
12:46 AM
Data Sourced
12:46 AM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·05:00 AM
Data Sourced
via MITRE·05:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2007-4570?

CVE-2007-4570 is classified as a moderate severity vulnerability due to its potential to cause a denial of service.

2

How do I fix CVE-2007-4570?

To mitigate CVE-2007-4570, update the mcstrans package to a version beyond 0.2.3 that addresses this vulnerability.

3

What type of attack does CVE-2007-4570 enable?

CVE-2007-4570 allows local users to perform a denial of service attack by exploiting algorithmic complexity in the MCS translation daemon.

4

Which products are affected by CVE-2007-4570?

CVE-2007-4570 specifically affects mcstrans version 0.2.3 across certain Red Hat Enterprise Linux distributions.

5

Can CVE-2007-4570 be exploited remotely?

No, CVE-2007-4570 can only be exploited by local users, as it requires access to the system where the daemon is running.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203