¡¾Â©¶´Í¨¸æ¡¿Linux Kernel ksmbdÔ¶³Ì´úÂëÖ´ÐЩ¶´£¨CVE-2023-32254£©

Ðû²¼Ê±¼ä 2023-05-23

Ò»¡¢Â©¶´¸ÅÊö

CVE   ID

CVE-2023-32254

·¢ÏÖʱ¼ä

2023-05-18

Àà    ÐÍ

´úÂëÖ´ÐÐ

µÈ    ¼¶

ÑÏÖØ

¹¥»÷ÏòÁ¿

ÍøÂç

ËùÐèȨÏÞ

ÎÞ

¹¥»÷ÅÓ´ó¶È

µÍ

Óû§½»»¥

ÎÞ

PoC/EXP

δ¹ûÈ»

ÔÚÒ°ÀûÓÃ


 

Linux Kernel ÊÇ¿ªÔ´²Ù×÷ϵͳ Linux ËùʹÓõÄÄںˡ£KSMBD ÊÇÒ»¸öLinuxÄں˷þÎñÆ÷£¬ËüÔÚÄں˿ռäÖÐʵÏÖ SMB3 ЭÒ飬ÓÃÓÚͨ¹ýÍøÂç¹²ÏíÎļþ¡£

½üÈÕ£¬¶«É­Æ½Ì¨VSRC¼à²âµ½Linux Kernel ksmbdÖб»Åû¶´æÔÚ¶à¸öÄþ¾²Â©¶´£¬ÆäÖÐ×îÑÏÖØµÄ©¶´°üÂÞ£º

Linux Kernel ksmbdÔ¶³Ì´úÂëÖ´ÐЩ¶´£¨CVE-2023-32254£©

¸Ã©¶´´æÔÚÓÚ SMB2_TREE_DISCONNECT ÃüÁîµÄ´¦Öùý³ÌÖУ¬ÓÉÓÚÔÚ¶Ô¹¤¾ßÖ´ÐвÙ×÷ʱȱÉÙÊʵ±µÄËø¶¨£¬µ±ÏµÍ³ÆôÓÃÁË ksmbdʱ£¬¿ÉÀûÓøÃ©¶´ÔÚÄÚºËÉÏÏÂÎÄÖÐÖ´ÐдúÂ룬¸Ã©¶´µÄCVSSv3ÆÀ·ÖΪ9.8¡£

Linux Kernel ksmbdÔ¶³Ì´úÂëÖ´ÐЩ¶´£¨CVE-2023-32250£©

¸Ã©¶´´æÔÚÓÚSMB2_SESSION_SETUP ÃüÁîµÄ´¦Öùý³ÌÖУ¬ÓÉÓÚÔÚ¶Ô¹¤¾ßÖ´ÐвÙ×÷ʱȱÉÙÊʵ±µÄËø¶¨£¬µ±ÏµÍ³ÆôÓÃÁË ksmbdʱ£¬¿ÉÀûÓøÃ©¶´ÔÚÄÚºËÉÏÏÂÎÄÖÐÖ´ÐдúÂ룬¸Ã©¶´µÄCVSSv3ÆÀ·ÖΪ9.0¡£

´ËÍ⣬Linux Kernel ksmbdÖл¹´æCVE-2023-32258¡¢CVE-2023-32257¡¢CVE-2023-32256¡¢CVE-2023-32252¡¢CVE-2023-32248¡¢CVE-2023-32247µÈ¶à¸ö¸ßΣ©¶´£¬µ±ÏµÍ³ÆôÓÃÁË ksmbdʱ£¬¿ÉÀûÓÃÕâЩ©¶´µ¼Ö´úÂëÖ´ÐС¢ÐÅϢй¶»ò¾Ü¾ø·þÎñ¡£


¶þ¡¢Ó°Ï췶Χ

Linux kernel°æ±¾£º4.19.90¡¢4.19.140¡¢4.19.194¡¢5.10.0¡¢6.1.0¡¢6.1.5¡¢6.1.6¡¢6.1.8¡¢6.1.14¡¢6.1.19

×¢£ºÖ»ÓÐÆôÓÃÁËksmbd µÄϵͳÈÝÒ×Êܵ½¹¥»÷¡£

 

Èý¡¢Äþ¾²´ëÊ©

3.1 Éý¼¶°æ±¾

ĿǰÕâЩ©¶´ÒѾ­ÐÞ¸´£¬ÊÜÓ°ÏìÓû§¿ÉÉý¼¶µ½ÒÔϰ汾£º

Linux kernel°æ±¾£º>= 6.3.2

ÏÂÔØÁ´½Ó£º

https://kernel.org/

3.2 ÁÙʱ´ëÊ©

Èç¹ûϵͳÖдæÔÚÇÒÆôÓÃÁËKSMBDÄ£¿é£¬¿É½ûÓà KSMBDÄ£¿é¡£

3.3 ͨÓý¨Òé

l  ¶¨ÆÚ¸üÐÂϵͳ²¹¶¡£¬¼õÉÙϵͳ©¶´£¬ÌáÉý·þÎñÆ÷µÄÄþ¾²ÐÔ¡£

l  ¼ÓǿϵͳºÍÍøÂçµÄ·ÃÎÊ¿ØÖÆ£¬Ð޸ķÀ»ðǽ¼ÆÄ±£¬¹Ø±Õ·ÇÐëÒªµÄÓ¦Óö˿ڻò·þÎñ£¬¼õÉÙ½«Î£ÏÕ·þÎñ£¨ÈçSSH¡¢RDPµÈ£©Ì»Â¶µ½¹«Íø£¬¼õÉÙ¹¥»÷Ãæ¡£

l  ʹÓÃÆóÒµ¼¶Äþ¾²²úÎÌáÉýÆóÒµµÄÍøÂçÄþ¾²ÐÔÄÜ¡£

l  ¼ÓǿϵͳÓû§ºÍȨÏÞ¹ÜÀí£¬ÆôÓöàÒòËØÈÏÖ¤»úÖÆºÍ×îСȨÏÞÔ­Ôò£¬Óû§ºÍÈí¼þȨÏÞÓ¦±£³ÖÔÚ×îµÍÏÞ¶È¡£

l  ÆôÓÃÇ¿ÃÜÂë¼ÆÄ±²¢ÉèÖÃΪ¶¨ÆÚÐ޸ġ£

3.4 ²Î¿¼Á´½Ó

https://www.zerodayinitiative.com/advisories/ZDI-23-702/

https://github.com/torvalds/linux/commit/30210947a343b6b3ca13adc9bfc88e1543e16dd5

https://gitee.com/src-openeuler/kernel/issues/I74FJA?from=project-issue

https://nvd.nist.gov/vuln/detail/CVE-2023-32254

 

ËÄ¡¢°æ±¾ÐÅÏ¢

°æ±¾

ÈÕÆÚ

±¸×¢

V1.0

2023-05-23

Ê×´ÎÐû²¼

 

Îå¡¢¸½Â¼

5.1 ¶«É­Æ½Ì¨¼ò½é

¶«É­Æ½Ì¨½¨Á¢ÓÚ1996Ä꣬ÊÇÓÉÁôÃÀ²©Ê¿ÑÏÍû¼ÑŮʿ´´½¨µÄ¡¢ÓµÓÐÍêÈ«×ÔÖ÷֪ʶ²úȨµÄÐÅÏ¢Äþ¾²¸ß¿Æ¼¼ÆóÒµ¡£ÊǹúÄÚ×î¾ßʵÁ¦µÄÐÅÏ¢Äþ¾²²úÎï¡¢Äþ¾²·þÎñ½â¾ö·½°¸µÄÁ캽ÆóÒµÖ®Ò»¡£

¹«Ë¾×ܲ¿Î»ÓÚ±±¾©ÊÐÖйشåÈí¼þÔ°¶«É­Æ½Ì¨´óÏ㬹«Ë¾Ô±¹¤6000ÓàÈË£¬Ñз¢ÍŶÓ1200ÓàÈË, ¼¼Êõ·þÎñÍŶÓ1300ÓàÈË¡£ÔÚÈ«¹ú¸÷Ê¡¡¢ÊС¢×ÔÖÎÇøÉèÁ¢·ÖÖ§»ú¹¹ÁùÊ®¶à¸ö£¬ÓµÓÐÁýÕÖÈ«¹úµÄÏúÊÛÌåϵ¡¢ÇþµÀÌåϵºÍ¼¼ÊõÖ§³ÖÌåϵ¡£¹«Ë¾ÓÚ2010Äê6ÔÂ23ÈÕÔÚÉîÛÚÖÐС°å¹ÒÅÆÉÏÊС££¨¹ÉƱ´úÂ룺002439£©

¶àÄêÀ´£¬¶«É­Æ½Ì¨ÖÂÁ¦ÓÚÌṩ¾ßÓйú¼Ê¾ºÕùÁ¦µÄ×ÔÖ÷´´ÐµÄÄþ¾²²úÎïºÍ×î¼Ñʵ¼ù·þÎñ£¬×ÊÖú¿Í»§È«ÃæÌáÉýÆäIT»ù´¡ÉèÊ©µÄÄþ¾²ÐÔºÍÉú²úЧÄÜ£¬Îª´òÔìºÍÌáÉý¹ú¼Ê»¯µÄÃñ×åÐÅÏ¢Äþ¾²¹¤ÒµÁì¾üÆ·ÅÆ¶ø²»Ð¸Å¬Á¦¡£

5.2 ¹ØÓÚ¶«É­Æ½Ì¨

¶«É­Æ½Ì¨Äþ¾²Ó¦¼±ÏìÓ¦ÖÐÐÄÒÑÐû²¼1000¶à¸ö©¶´Í¨¸æºÍ·çÏÕÔ¤¾¯£¬ÎÒÃǽ«Á¬Ðø¸ú×ÙÈ«Çò×îеÄÍøÂçÄþ¾²Ê¼þºÍ©¶´£¬ÎªÆóÒµµÄÐÅÏ¢Äþ¾²±£¼Ý»¤º½¡£

¹Ø×¢ÎÒÃÇ£º

image.png