Description
Stack-based buffer overflow in lib/sh/eaccess.c in GNU Bash before 4.2 patch 33 might allow local users to bypass intended restricted shell access via a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | bash | 4.2-4 | — |
| Debian 13 | bash | 4.2-4 | — |
| Debian 12 | bash | 4.2-4 | — |
References
- [oss-security] 20120712 Re: CVE Request: Overflow fix in bash 4.2 patch 33 mailing-list
- MDVSA-2012:128 vendor-advisory
- bash-devfd-bo(77551) vdb-entry
- openSUSE-SU-2012:0898 vendor-advisory
- 51086 third-party-advisory
- [oss-security] 20120711 CVE Request: Overflow fix in bash 4.2 patch 33 mailing-list
- 54937 vdb-entry
- GLSA-201210-05 vendor-advisory
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681278
- [oss-security] 20120712 Re: CVE Request: Overflow fix in bash 4.2 patch 33 mailing-list