[8632] 2015-01-28_幽灵漏洞(GHOST)影响大量Linux操作系统及其发行版(更新修复方案)

文档创建者:s7ckTeam
浏览次数:35
最后更新:2025-01-17
2015-01-28_幽灵漏洞(GHOST)影响大量Linux操作系统及其发行版(更新修复方案) G H O S T L i n u x F r e e B u f   2 0 1 5 - 0 1 - 2 8 G H O S T L i n u x C V E C V E - 2 0 1 5 - 0 2 3 5 g l i b c g l i b c G N U l i b c c g l i b c l i n u x a p i g l i b c g l i b c l i n u x g l i b c U N I X Q u a l y s g l i b c _ _ n s s _ h o s t n a m e _ d i g i t s _ d o t s ( ) b u g g e t h o s t b y n a m e * ( ) 使 g e t h o s t b y n a m e * ( ) D N S i p g l i b c 2 . 2 - 2 . 1 7 L i n u x C e n t O S   6   &   7 D e b i a n   7 R e d   H a t   E n t e r p r i s e   L i n u x   6   &   7 U b u n t u   1 0 . 0 4   &   1 2 . 0 4 L i n u x 1
# i n c l u d e   < n e t d b . h > # i n c l u d e   < s t d i o . h > # i n c l u d e   < s t d l i b . h > # i n c l u d e   < s t r i n g . h > # i n c l u d e   < e r r n o . h > # i n c l u d e   < g n u / l i b c - v e r s i o n . h > # d e f i n e   C A N A R Y   " i n _ t h e _ c o a l _ m i n e " s t r u c t   { c h a r   b u f f e r [ 1 0 2 4 ] ; c h a r   c a n a r y [ s i z e o f ( C A N A R Y ) ] ; }   t e m p   =   {   " b u f f e r " ,   C A N A R Y   } ; i n t   m a i n ( v o i d )   { s t r u c t   h o s t e n t   r e s b u f ; s t r u c t   h o s t e n t   * r e s u l t ; i n t   h e r r n o ; i n t   r e t v a l ; / * * *   s t r l e n   ( n a m e )   =   s i z e _ n e e d e d   -   s i z e o f   ( * h o s t _ a d d r )   -   s i z e o f   ( * h _ a d d r _ p t r s )   -   1 ;   * * * / s i z e _ t   l e n   =   s i z e o f ( t e m p . b u f f e r )   -   1 6 * s i z e o f ( u n s i g n e d   c h a r )   -   2 * s i z e o f ( c h a r   * )   -   1 ; c h a r   n a m e [ s i z e o f ( t e m p . b u f f e r ) ] ; m e m s e t ( n a m e ,   ' 0 ' ,   l e n ) ; n a m e [ l e n ]   =   ' 0 ' ; r e t v a l   =   g e t h o s t b y n a m e _ r ( n a m e ,   & r e s b u f ,   t e m p . b u f f e r ,   s i z e o f ( t e m p . b u f f e r ) ,   & r e s u l t ,   & h e r r n o ) ; i f   ( s t r c m p ( t e m p . c a n a r y ,   C A N A R Y )   ! =   0 )   { p u t s ( " v u l n e r a b l e " ) ; e x i t ( E X I T _ S U C C E S S ) ; } i f   ( r e t v a l   = =   E R A N G E )   { p u t s ( " n o t   v u l n e r a b l e " ) ; e x i t ( E X I T _ S U C C E S S ) ; } p u t s ( " s h o u l d   n o t   h a p p e n " ) ; e x i t ( E X I T _ F A I L U R E ) ; } 2 g l i b c g c c   g i s t f i l e 1 . c   - o   C V E - 2 0 1 5 - 0 2 3 5 . / C V E - 2 0 1 5 - 0 2 3 5 g l i b c R H F e d o r a C e n t O S y u m   i n s t a l l   g l i b c   & &   r e b o o t D e b i a n U b u n t u a p t - g e t   c l e a n   & &   a p t - g e t   u p d a t e   & &   a p t - g e t   u p g r a d e u p d a t e g l i b c [ t h r e a t p o s t 3 6 0 F r e e B u f F r e e B u f . C O M ]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则