MacOS X 10.9.5 NULL pointer dereference

2014.11.08
Risk: Medium
Local: Yes
Remote: No
CWE: N/A


CVSS Base Score: 4.9/10
Impact Subscore: 6.9/10
Exploitability Subscore: 3.9/10
Exploit range: Local
Attack complexity: Low
Authentication: No required
Confidentiality impact: None
Integrity impact: None
Availability impact: Complete

Impact: A malicious file system may cause unexpected system shutdown Description: A NULL dereference issue existed in the handling of HFS filenames. A maliciously crafted filesystem may cause an unexpected system shutdown. This issue was addressed by avoiding the NULL dereference. MACOSX 10.9 CODE: http://opensource.apple.com/source/xnu/xnu-2422.1.72/bsd/hfs/hfs_vfsops.c ------------------- MALLOC(filename, char *, newlen, M_TEMP, M_WAITOK); if (filename == NULL) { error = ENOMEM; goto encodinghint_exit; } MALLOC(unicode_name, u_int16_t *, bufsize, M_TEMP, M_WAITOK); if (filename == NULL) { <======== error = ENOMEM; goto encodinghint_exit; ------------------- MACOSX 10.10 CODE: http://opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/hfs/hfs_vfsops.c ------------------- MALLOC(filename, char *, newlen, M_TEMP, M_WAITOK); if (filename == NULL) { error = ENOMEM; goto encodinghint_exit; } MALLOC(unicode_name, u_int16_t *, bufsize, M_TEMP, M_WAITOK); if (unicode_name == NULL) { error = ENOMEM; goto encodinghint_exit; } ------------------- Vulnerability discovered by tool cifrex.org for static code analysis More: http://cxsecurity.com/issue/WLB-2014040027

References:

https://support.apple.com/kb/HT6535
http://cxsecurity.com/issue/WLB-2014040027
http://opensource.apple.com/source/xnu/xnu-2422.1.72/bsd/hfs/hfs_vfsops.c
http://opensource.apple.com/source/xnu/xnu-2782.1.97/bsd/hfs/hfs_vfsops.c
http://cifrex.org/


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2024, cxsecurity.com

 

Back to Top