CVE 목록
Medium5.5유형: 운영체제

CVE-2023-52933

공개
2025년 3월 28일
수정
2026년 6월 17일
조회
0
상태
Analyzed
관련 내용 구글 검색하기한국어English
번역 대상이 아니에요. 원문(영어)만 제공돼요.
5.5Medium

개요

이 취약점이 무엇인지

In the Linux kernel, the following vulnerability has been resolved:

Squashfs: fix handling and sanity checking of xattr_ids count

A Sysbot [1] corrupted filesystem exposes two flaws in the handling and sanity checking of the xattr_ids count in the filesystem. Both of these flaws cause computation overflow due to incorrect typing.

In the corrupted filesystem the xattr_ids value is 4294967071, which stored in a signed variable becomes the negative number -225.

Flaw 1 (64-bit systems only):

The signed integer xattr_ids variable causes sign extension.

This causes variable overflow in the SQUASHFS_XATTR_*(A) macros. The variable is first multiplied by sizeof(struct squashfs_xattr_id) where the type of the sizeof operator is "unsigned long".

On a 64-bit system this is 64-bits in size, and causes the negative number to be sign extended and widened to 64-bits and then become unsigned. This produces the very large number 18446744073709548016 or 2^64 - 3600. This number when rounded up by SQUASHFS_METADATA_SIZE - 1 (8191 bytes) and divided by SQUASHFS_METADATA_SIZE overflows and produces a length of 0 (stored in len).

Flaw 2 (32-bit systems only):

On a 32-bit system the integer variable is not widened by the unsigned long type of the sizeof operator (32-bits), and the signedness of the variable has no effect due it always being treated as unsigned.

The above corrupted xattr_ids value of 4294967071, when multiplied overflows and produces the number 4294963696 or 2^32 - 3400. This number when rounded up by SQUASHFS_METADATA_SIZE - 1 (8191 bytes) and divided by SQUASHFS_METADATA_SIZE overflows again and produces a length of 0.

The effect of the 0 length computation:

In conjunction with the corrupted xattr_ids field, the filesystem also has a corrupted xattr_table_start value, where it matches the end of filesystem value of 850.

This causes the following sanity check code to fail because the incorrectly computed len of 0 matches the incorrect size of the table reported by the superblock (0 bytes).

len = SQUASHFS_XATTR_BLOCK_BYTES(*xattr_ids); indexes = SQUASHFS_XATTR_BLOCKS(*xattr_ids);

/* * The computed size of the index table (len bytes) should exactly * match the table start and end points */ start = table_start + sizeof(*id_table); end = msblk->bytes_used;

if (len != (end - start)) return ERR_PTR(-EINVAL);

Changing the xattr_ids variable to be "usigned int" fixes the flaw on a 64-bit system. This relies on the fact the computation is widened by the unsigned long type of the sizeof operator.

Casting the variable to u64 in the above macro fixes this flaw on a 32-bit system.

It also means 64-bit systems do not implicitly rely on the type of the sizeof operator to widen the computation.

[1] https://lore.kernel.org/lkml/[email protected]/

실제 악용 사례 · 아직 확인된 사례가 없어요

CISA의 KEV 카탈로그(실제 공격에 악용된 취약점 목록)에 아직 올라와 있지 않아요. 다만 ‘앞으로도 안전하다’는 뜻은 아니니 심각도와 EPSS를 함께 확인하세요.

패치 현황

어떤 버전이 위험하고, 몇 버전으로 올리면 되는지

제품시작끝이 버전 이상으로
linux_kernellinux4.4.258≤취약<4.54.5이상
4.9.258≤취약<4.104.10이상
4.14.222≤취약<4.14.3064.14.306이상
4.19.176≤취약<4.19.2734.19.273이상
5.4.98≤취약<5.4.2325.4.232이상
5.10.16≤취약<5.10.1685.10.168이상
5.11.1≤취약<5.15.935.15.93이상
5.16≤취약<6.1.116.1.11이상
이 버전만취약=5.11벤더 공지 확인
이 버전만취약=6.2 rc1벤더 공지 확인
이 버전만취약=6.2 rc2벤더 공지 확인
이 버전만취약=6.2 rc3벤더 공지 확인
이 버전만취약=6.2 rc4벤더 공지 확인
이 버전만취약=6.2 rc5벤더 공지 확인
이 버전만취약=6.2 rc6벤더 공지 확인

NVD 분석 기준. 시작과 끝 사이 버전이 취약해요. ‘이 버전 이상으로’는 끝이 ‘<’로 적힌 경우에만 알 수 있어요.

할당 기관(CNA)이 적은 버전 15줄도 보기
제품시작끝이 버전 이상으로
LinuxLinux4.14.222≤취약<4.14.3064.14.306이상
4.19.176≤취약<4.19.2734.19.273이상
5.4.98≤취약<5.4.2325.4.232이상
5.10.16≤취약<5.10.1685.10.168이상
4.4.258≤취약<4.54.5이상
4.9.258≤취약<4.104.10이상
이 버전만취약=5.11벤더 공지 확인
최초 버전≤영향 없음<5.11—
4.14.306≤영향 없음≤4.14.*—
4.19.273≤영향 없음≤4.19.*—
5.4.232≤영향 없음≤5.4.*—
5.10.168≤영향 없음≤5.10.*—
5.15.93≤영향 없음≤5.15.*—
6.1.11≤영향 없음≤6.1.*—
6.2≤영향 없음≤최신 버전—

참고 링크

NVD에 등록된 외부 자료예요. 익스플로잇·벤더 공지·패치 순으로 먼저 보여줘요.