nday
CVE-2022-50699

selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context()

Linux / Linux

CVE 공개: . nday가 아직 패치 근거를 수집하지 않았습니다. 패치가 없다는 뜻은 아닙니다. PoC 출처 4곳 모두 미등재. CISA KEV 미등재.

tags productLinux kernel product typeoperating system
why these tags

nday derives these tags by fixed rules from the facts below; NVD, the CNA and other sources do not assign them. Vocabulary and rules: ~/tags.

Linux kernel
affected products in the CVE record: Linux · Linux
operating system
affected products in the CVE record: Linux · Linuxthe product type of Linux kernel in nday's product registry
현재 단계
DIS
공개
CVSS
점수 없음

생명주기

가로축 UTC. 점 = 분 단위, 넓은 막대 = 날짜만, 빈 표시 = 불명 또는 추정.
시점 알 수 없음
DIS공개
2025-12-24T10:55Z
PAT패치
아직 기록 없음
ANA분석
아직 기록 없음
POCPoC
아직 기록 없음
ITW악용
아직 기록 없음
KEVKEV
아직 기록 없음

요약

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

selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context()

The following warning was triggered on a hardware environment:

SELinux: Converting 162 SID table entries...
BUG: sleeping function called from invalid context at
     __might_sleep+0x60/0x74 0x0
in_atomic(): 1, irqs_disabled(): 128, non_block: 0, pid: 5943, name: tar
CPU: 7 PID: 5943 Comm: tar Tainted: P O 5.10.0 #1
Call trace:
 dump_backtrace+0x0/0x1c8
 show_stack+0x18/0x28
 dump_stack+0xe8/0x15c
 ___might_sleep+0x168/0x17c
 __might_sleep+0x60/0x74
 __kmalloc_track_caller+0xa0/0x7dc
 kstrdup+0x54/0xac
 convert_context+0x48/0x2e4
 sidtab_context_to_sid+0x1c4/0x36c
 security_context_to_sid_core+0x168/0x238
 security_context_to_sid_default+0x14/0x24
 inode_doinit_use_xattr+0x164/0x1e4
 inode_doinit_with_dentry+0x1c0/0x488
 selinux_d_instantiate+0x20/0x34
 security_d_instantiate+0x70/0xbc
 d_splice_alias+0x4c/0x3c0
 ext4_lookup+0x1d8/0x200 [ext4]
 __lookup_slow+0x12c/0x1e4
 walk_component+0x100/0x200
 path_lookupat+0x88/0x118
 filename_lookup+0x98/0x130
 user_path_at_empty+0x48/0x60
 vfs_statx+0x84/0x140
 vfs_fstatat+0x20/0x30
 __se_sys_newfstatat+0x30/0x74
 __arm64_sys_newfstatat+0x1c/0x2c
 el0_svc_common.constprop.0+0x100/0x184
 do_el0_svc+0x1c/0x2c
 el0_svc+0x20/0x34
 el0_sync_handler+0x80/0x17c
 el0_sync+0x13c/0x140
SELinux: Context system_u:object_r:pssp_rsyslog_log_t:s0:c0 is
         not valid (left unmapped).

It was found that within a critical section of spin_lock_irqsave in sidtab_context_to_sid(), convert_context() (hooked by sidtab_convert_params.func) might cause the process to sleep via allocating memory with GFP_KERNEL, which is problematic.

As Ondrej pointed out [1], convert_context()/sidtab_convert_params.func has another caller sidtab_convert_tree(), which is okay with GFP_KERNEL. Therefore, fix this problem by adding a gfp_t argument for convert_context()/sidtab_convert_params.func and pass GFP_KERNEL/_ATOMIC properly in individual callers.

[PM: wrap long BUG() output lines, tweak subject line]

Original text of the CVE record (cvelist), shown as published.

이벤트 로그

+DISCVE 공개

CVE 레코드 공개(CNA: Linux).

출처 cvelist · nday 일괄 수집 · 원본
{
  "id": 279917,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2022-50699",
  "occurred_at": "2025-12-24T10:55:15.468Z",
  "observed_at": "2026-11-13T05:37:51.196939Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "state": "PUBLISHED",
    "date_published": "2025-12-24T10:55:15.468Z",
    "assigner_short_name": "Linux"
  }
}

Report an error

report an error or omission

Something on this page wrong or missing? Tell the editors; if they accept it, this page's revision log says so publicly. Upstream data is not changed.

연구자 논의

최근 7일간 연구자 0명이 언급

목록의 연구자가 X에서 이 CVE를 언급한 게시물입니다. 원문 그대로 보여 주며 nday는 검증하지 않습니다.

명단의 연구자가 X에서 이 CVE를 언급한 게시물은 아직 수집되지 않았습니다.

Discussion

0 comments

No comments yet.