Description
Stack-based buffer overflow in the hfs_mac2asc function in fs/hfs/trans.c in the Linux kernel 2.6 allows local users to cause a denial of service (crash) and possibly execute arbitrary code via an HFS image with a crafted len field.
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.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5 | kernel +12 | 2.6.18-274.17.1.el5 | RHSA-2012:0007 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 5.6 EUS | kernel +12 | 2.6.18-238.35.1.el5 | RHSA-2012:0358 |
Advisories 2
- RHSA-2012:0358 Red Hat Security Advisory: kernel security and bug fix update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2012:0007 Red Hat Security Advisory: kernel security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
References
- [oss-security] 20111121 Re: kernel: hfs: add sanity check for file name length mailing-list
- 50750 vdb-entry
- https://bugzilla.redhat.com/show_bug.cgi?id=755431
- [oss-security] 20111121 kernel: hfs: add sanity check for file name length mailing-list
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commitdiff%3Bh=bc5b8a9003132ae44559edd63a1623
- [linux-kernel] 20111109 [BUG][SECURITY] Kernel stack overflow in hfs_mac2asc() mailing-list