총 16,343건
CVE-2026-89775
2026년 9월 16일리눅스 커널에서 다음 취약점이 해결되었다: KVM: arm64: VNCR TLB 크기 평가에서 음수 S1 워크 레벨 처리 TLB 무효화의 영향을 계산할 때 TLB에 캐시된 매핑 크기를 확인한다. VNCR과 같은 S1 매핑의 경우, 이는 기본 그레뉼 크기와 매핑 레벨의 조합에서 차감된다. 그러나 이는 S1 MMU가 *켜져 있음*을 의미한다. MMU가 꺼져 있을 때는 레벨이 "창의적인" 값인 -127(S1_MMU_DISABLED)로 설정되어 이를 나타낸다. 이 값은 pgshift_level_to_ttl()에서 음수 레벨을 전혀 처리하지 않기 때문에 잘못 해석된다(레벨이 즉시 u8로 캐스팅되고 하위 두 비트만 고려됨), 그 결과 무효화 크기가 0이 되어 도움이 되지 않는다. pgshift_level_to_ttl()를 정리하여 이러한 음수 레벨을 처리하고, ttl_to_size()가 유효한 TTL이 없을 때 항상 SZ_1G를 반환하도록 한다. 이를 통해 유사 상황에 대한 하드코딩된 검사들을 제거할 수 있다. 음수 값에 대한 검사가 S1_MMU_DISABLED를 명시적으로 확인하지 않는 것은 의도적이며, LVA2 및 D128과 함께 도입된 실제 음수 레벨이 지원될 경우 동일한 경로를 따를 수 있도록 하기 위함이다.
CVE-2026-89774
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: SCO: sco_conn_ready에서 sk를 적절히 유지 sco_conn_ready에서 sk 역참조는 동시 종료를 방지하기 위해 conn->lock 하에서 또는 참조 카운트를 유지하면서 수행되어야 한다. 현재 conn->sk와 부모 sk는 둘 중 어느 것도 없이, 그리고 parent->sk_state를 확인하지 않고 접근되고 있다: [작업 1] [작업 2] sco_sock_release sco_conn_ready sk = conn->sk lock_sock(sk) conn->sk = NULL lock_sock(sk) release_sock(sk) sco_sock_kill(sk) sk 역참조 시 해제 후 사용(UAF) 그리고 sco_get_sock_listen() 반환값 접근도 유사하다. sco_conn_ready()에서 sk 참조 카운트를 유지하고 sco_get_sock_listen()이 참조 카운트를 증가시키도록 하여 가능한 UAF를 수정했다. 또한 lock_sock 이후에 소켓이 여전히 유효한지 재확인한다. conn->sk 잠금도 관련 소켓의 lock_sock()에 의해 보호되도록 조정했다.
CVE-2026-89773
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Skip Update HDCP Config In Transition State Transition state does not have a valid dm_stream_ctx that should skip configuring HDCP routine. The routine is valid to go through only when a valid stream is created.
CVE-2026-89772
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: btrfs: write-protect folios during data writeback commit 095be159f3eb ("btrfs: unify folio dirty flag clearing") replaced the folio_clear_dirty_for_io() call in extent_write_cache_pages() with a plain folio_test_dirty() check. Besides clearing the dirty flag, folio_clear_dirty_for_io() also calls folio_mkclean(), which write-protects the shared mmap PTEs mapping the folio. Note that we still do call folio_clear_dirty_for_io() later in submit_one_sector() when we clear dirty on the last sector of the folio (the only sector for non-subpage cases). But we lost this early call in extent_write_cache_pages(). Without the extra write-protection, a process with the file mmap-ed can modify a sector while it is being used by writeback in a way that expects a stable folio (checksumming, compressing, copying, etc...) without faulting, which manifests as a handful of concrete bugs. 1. For large folios or subpage sectorsize, it is possible to submit a bio which does not cover the whole folio. When this happens, we will have a bio in flight for a folio that we have *not* called folio_clear_dirty_for_io() on. If a task with an existing mmap-ed PTE writes (without faulting..) in this window, it can result in corruptions. If the write arrives while the checksumming or writing itself is underway, this can result in an invalid checksum and later corruption reports on read. If the write arrives after checksumming/writing is done but before the last sector dirty is cleared, then the write is present in page cache but doesn't affect the dirty tracking and will be lost when the folio is fully finished being submitted and the dirty bit is cleared. This results in losing the write even if fsync() is called. 2. For zoned submissions which are done in batch separate from the main extent_writepage() loop, we also risk csum violations for those submissions. Zoned writes are clamped to max_zone_append_size and are not aligned with folios, so a submission can span two folios. The first folio being processed in extent_write_cache_pages() will call extent_write_locked_range() which will submit the partial range of the next folio, while the rest of that folio could still be dirty. So clearing dirty on the submitted sectors doesn't call folio_clear_dirty_for_io() and we have the same issue. Since extent_write_cache_pages() skips these batch submitted folios (they are already marked for writeback from submission by the preceding folio), we must add the extra write protection in lock_delalloc_folios(). 3. For inline extents this will subtly risk losing writes that happen after/while we copy the inline extent but before we clear dirty on the folio. 4. For folios spanning EOF, mmap could tamper with the zeroed bytes past EOF and cause them to be persisted where future faults would improperly see them instead of zeros. 5. Finally, for compressed extents, we risk modifying the folios while we work on compressing them which will result in corrupted compressed data. Specifically, in run_delalloc_compressed() we queue up work to do compress_file_range() in BTRFS_COMPRESSION_CHUNK_SIZE (512K) chunks which will call btrfs_folio_clamp_clear_dirty() on the range. For non-subpage, this will always clear the whole folio, safely. For subpage, we risk a partial clear here as well. In particular, imagine a 2M folio broken up into 512K chunks of work which might start compression work on one chunk before all the chunks compress_file_range() workers have gotten far enough to finish clearing all the dirty bitmaps of the folio and getting to folio_clear_dirty_for_io(). Large folios on the edges of submission ranges are similarly at risk to be only partly cleared. This particular gap was introduced by a second patch in the same series: commit a4ef54dbb576 ("btrfs: make extent_range_clear_dirty_for_io() to handle sector size < page size cases") We cannot simply restore the call to folio_clear ---truncated---
CVE-2026-89771
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: ring-buffer: 링 버퍼 리더와의 서브버퍼 크기 조정 경쟁 조건 수정 trace_buffer subbuf_size는 ring_buffer_read_page()와 ring_buffer_read_start()에서 락 없이 읽히는데, 동시에 ring_buffer_subbuf_order_set()에 의해 크기가 조정될 수 있다. trace_buffer::subbuf_size 대신 ring_buffer_read_start()와 ring_buffer_read_page()에서 bpage::order를 사용한다. ring_buffer_read_start()에서는 resize_disabled 상태에서도 버퍼 수정과의 경쟁 가능성이 있다. 모든 대기 중인 링 버퍼 순서 수정과 동기화하기 위해 trace_buffer 뮤텍스를 유지한다. trace_buffer::subbuf_size는 이제 실제로 불필요하므로 제거한다. 또한 이벤트 저장에 실제로 사용 가능한 크기를 반환하는 rb_subbuf_capacity()와 rb_page_capacity() 접근자를 생성하며, rb_subbuf_size()는 실제 서브버퍼 페이지 크기를 반환한다.
CVE-2026-89770
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: iomap: don't free integrity payload that doesn't exist fs_bio_integrity_alloc might not allocate a bio integrity payload if PI verification is disabled on the block device. Check for that case before calling fs_bio_integrity_free in iomap_bio_read_folio_range_sync to avoid a NULL pointer dereferences. Make the branch cover the PI verification as well - while fs_bio_integrity_verify works without an integrity payload, it requires one to actually do useful work.
CVE-2026-89769
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: clocksource/drivers/nxp-pit: cpuhp_setup_state 오류 경로에서 IRQ 누수 수정 pit_clockevent_per_cpu_init이 request_irq를 성공적으로 호출한 후 cpuhp_setup_state가 실패하면, 오류 처리가 등록된 IRQ를 해제하지 않고 직접 out_pit_clocksource_unregister로 점프한다. 이로 인해 IRQ 라인이 누수되고, kfree(pit)가 뒤따르면서 인터럽트 핸들러의 dev_id로 등록된 댕글링 포인터가 남아, 이후 IRQ가 발생하면 use-after-free가 발생할 수 있다. 기존 정리 체인으로 넘어가기 전에 pit_clockevent_per_cpu_exit를 호출하여 IRQ를 적절히 해제함으로써 이를 수정한다.
CVE-2026-89768
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: fs: fix user path of nested backing files backing_file_open() derives the path to be stored in the new backing file from user_file->f_path. This is incorrect when user_file itself is a backing file, which is the case for nested stacking filesystems, e.g. overlayfs mounts where the lowerdir of one overlayfs is the merged directory of another. Since commit def3ae83da02 ("fs: store real path instead of fake path in backing file f_path") the f_path of a backing file holds the real path of the intermediate layer, not the path that the user opened. Commit 924577e4f6ca ("ovl: Fix nested backing file paths") fixed this for such configurations by passing file_user_path() from ovl_open_realfile(). However, commit 6af36aeb147a ("lsm: add backing_file LSM hooks") changed the first argument of backing_file_open() from the user path back to the user file and derived the path from user_file->f_path again, silently re-introducing the problem. As a result, files mapped through a nested overlayfs show the wrong path in /proc/<pid>/maps and in perf/ftrace mmap records. For example, with two nested overlayfs mounts: mkdir -p /ovl/{lower,upper,work,merged} /ovl/nested echo hello > /ovl/lower/foo mount -t overlay overlay \ -o lowerdir=/ovl/lower,upperdir=/ovl/upper,workdir=/ovl/work \ /ovl/merged # at least two lowerdirs are needed when upperdir is nonexistent mount -t overlay overlay \ -o lowerdir=/ovl/merged:/ovl/lower /ovl/nested mapping /ovl/nested/foo shows a disconnected path instead of the user path: # readlink /proc/self/fd/3 /ovl/nested/foo # grep foo /proc/self/maps 7f6e2c100000-7f6e2c101000 r--s 00000000 00:24 15813027 /foo The bogus path is derived from the f_path of the intermediate backing file, whose mount is a private clone that d_path() cannot resolve. Fix this by using file_user_path(), which returns the outermost user-visible path for backing files and falls back to &user_file->f_path for regular files. This restores the behavior of commit 924577e4f6ca ("ovl: Fix nested backing file paths") for overlayfs and also fixes the same problem for the other backing_file_open() callers, fuse passthrough and erofs ishare, when their user file is itself a backing file. backing_tmpfile_open() has the same pattern but is not affected: it is only called by ovl_create_tmpfile() for the upper layer, and another overlayfs is rejected as upperdir by the DCACHE_OP_REAL check in ovl_mount_dir_check(), so its user_file can never be a backing file.
CVE-2026-89767
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: ovl: casefold 불일치 경로에서 end_creating()가 두 번 호출되는 문제 수정 ovl_create_real() 함수는 casefold 일관성 검사 실패 시 새 dentry를 두 번 해제한다. S_IFDIR 분기에서는 end_creating()을 호출하고 err를 설정한 후, 공통 out: 레이블로 넘어가 동일한 dentry에 대해 다시 end_creating()을 호출한다: case S_IFDIR: newdentry = ovl_do_mkdir(ofs, dir, newdentry, attr->mode); err = PTR_ERR_OR_ZERO(newdentry); if (!err && ofs->casefold != ovl_dentry_casefolded(newdentry)) { pr_warn_ratelimited(...); end_creating(newdentry); /* 첫 번째 호출 */ err = -EINVAL; } break; ... if (err) goto out; ... out: if (err) { end_creating(newdentry); /* 두 번째 호출, 동일 dentry */ return ERR_PTR(err); } end_creating()는 end_dirop()이며, 부모에 대해 inode_unlock()을 호출하고 dentry에 대해 dput()을 호출한다. 따라서 부모 디렉터리의 i_rwsem이 두 번 잠금 해제되고 dentry가 두 번 해제된다. 두 번째 잠금 해제는 보유하지 않은 잠금을 해제하여 이후 해당 부모 아래의 모든 생성 작업을 막으며, 두 번째 dput()은 취득되지 않은 참조를 감소시킨다. 이 분기는 커밋 dfc7da402ccc ("ovl: Check for casefold consistency when creating new dentries")에서 bare dput()으로 추가되었으며, 이는 이미 참조를 두 번 해제했다. 커밋 fe497f0759e0 ("VFS: change vfs_mkdir() to unlock on failure.")는 두 위치 모두를 end_creating()으로 변경하여 이중 잠금 해제를 추가했다. 이 취약점은 권한 없는 사용자도 접근 가능하다. 레이어의 casefold 일관성은 마운트 시 ovl_parse_layer()에서, 그리고 모든 조회 시 ovl_lookup_single()에서 검증되지만, ofs->workdir는 사용자 제공 workdir 내부에 생성된 내부 "work" 하위 디렉터리이며, 이 하위 디렉터리는 재검사되지 않는다. 따라서 마운트 후 이를 casefolded로 표시하면 모든 ovl_create_temp()가 잘못된 상태를 상속하며, 이 경로는 ovl_start_creating_temp()를 통해 ovl_create_real()에 도달하는데, 여기서는 생성된 이름으로 start_creating()을 사용하여 조회 시 검사를 실행하지 않는다. unshare -Urm mount -t tmpfs -o casefold=utf8-12.1.0 tmpfs mnt mkdir -p mnt/lower/d mnt/upper mnt/work mnt/merged mount -t overlay ovl -o lowerdir=mnt/lower,\ upperdir=mnt/upper,workdir=mnt/work mnt/merged chattr +F mnt/work/work mkdir mnt/merged/d/sub # 디렉터리 복사 업 overlayfs: 잘못 상속된 casefold (work/#5) 다음 복사 업은 부모의 i_rwsem에서 영원히 블록된다: mkdir D start_creating+0x65/0xb0 ovl_start_creating_temp+0xb0/0xe0 [overlay] ovl_create_temp+0xa3/0x1d0 [overlay] ovl_copy_up_one+0x1f1c/0x21c0 [overlay] ovl_copy_up_flags+0xf5/0x140 [overlay] ovl_create_object+0xb7/0x220 [overlay] ovl_mkdir+0x23/0x40 [overlay] 분기에서 end_creating() 호출을 제거하고 out: 레이블이 정리 작업을 담당하도록 하여, 이 함수 내 다른 모든 오류 경로가 이미 수행하는 방식과 일치시켰다.
CVE-2026-89766
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: pidfd: hold exec_update_lock around namespace ioctl The PIDFD_GET_*_NAMESPACE ioctls in pidfd_ioctl() perform a filesystem credentials ptrace access check before handing out a namespace file descriptor. The accompanying comment states that the code "mirrors nsfs behavior", but, unlike the corresponding procfs paths, it does so without holding the target task's exec_update_lock. proc_ns_get_link() and proc_ns_readlink() both take exec_update_lock for reading around the ptrace check and the namespace lookup, so that the credentials used for the access decision match those of the task when its namespace is read. Without it, a caller can pass the check against the target's old credentials and then read the namespace after the target has execve()'d a setuid binary and committed new credentials -- accessing namespace information it should have been denied. Hold exec_update_lock for reading around the ptrace check and the namespace lookup so that pidfd truly mirrors nsfs behavior, as the comment already claims. open_namespace() itself runs outside the lock: once a namespace reference is obtained it carries its own refcount and is opened with the caller's own credentials, so a concurrent execve() on the target can no longer affect the outcome.
CVE-2026-89765
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: timers/itimer: Zero-init old itimerval before copy to userspace On native sparc64, struct __kernel_old_timeval contains a four-byte hole after tv_usec because tv_sec is 64-bit while __kernel_suseconds_t is 32-bit. put_itimerval() fills only the named fields in a stack-allocated __kernel_old_itimerval and copies the entire object to userspace, so getitimer() can expose the two padding holes. Zero-initialize the aggregate before assigning the fields so implicit padding is deterministic before it crosses the user/kernel boundary.
CVE-2026-89764
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: rust: devres: 동시 revoker 간의 경쟁 조건 수정 두 경로가 동시에 Devres를 취소하려고 할 때 잠재적인 경쟁 조건이 존재한다. 드라이버 코어의 devres_release_all()은 release 콜백을 통해 Revocable::revoke()를 호출하는 반면, Devres::drop()은 다른 CPU에서 revoke_nosync()를 호출한다. is_available 스왑을 주장하지 않는 revoker는 즉시 반환하지만, 주장한 revoker는 여전히 내부 데이터에 대해 drop_in_place()를 실행 중일 수 있다. 이는 다른 revoker의 호출자가 drop_in_place()가 여전히 참조하는 인접 리소스를 해제할 때(use-after-free)가 발생할 수 있다(예: Devres<DmaMappedSgt>가 SGTable과 경쟁하여 backing sg_table 및 페이지를 해제하는 경우). 이 문제는 Completion을 추가하여 수정한다. release 콜백은 revoke()가 완료된 후 Completion에 신호를 보내고, Devres::drop()은 is_available 스왑에서 패배할 경우 이를 대기한다. 이를 통해 Devres::drop()이 반환되기 전에 래핑된 객체가 완전히 해체됨을 보장한다.
CVE-2026-89763
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: KEYS: trusted: TPM 종료 순서 수정 trusted_tpm_exit()는 TPM 칩 참조를 해제하고 digest 배열을 해제한 후에 trusted 키 타입 등록 해제를 수행한다. key_type_lookup()은 키 작업이 완료될 때까지 key_types_sem을 읽기용으로 보유하는 반면, unregister_key_type()은 이를 쓰기용으로 획득한다. 따라서 이는 백엔드 종료 전에 선행되어야 하는 동기화 지점을 제공한다. 현재 순서는 다음과 같은 교차 실행을 허용한다: CPU 0 CPU 1 trusted_tpm_exit() key_type_lookup("trusted") put_device(&chip->dev) trusted_tpm_seal() kfree(digests) pcrlock() unregister_key_type() tpm_pcr_extend(..., digests) CPU 1은 결과적으로 해제된 digest 배열을 역참조할 수 있다. 또한 칩은 콜백이 사용을 중지하기 전에 해제될 수 있다. KASAN 보고 내용: BUG: KASAN: slab-use-after-free in tpm_pcr_extend+0x1f0/0x200 Read of size 2 at addr ffff88810872d000 by task poc/89 Call Trace: tpm_pcr_extend+0x1f0/0x200 pcrlock+0x42/0x70 [trusted] trusted_tpm_seal+0x1b6/0x570 [trusted] trusted_instantiate+0x293/0x340 [trusted] __key_instantiate_and_link+0xb2/0x2b0 __key_create_or_update+0x61e/0xb50 __do_sys_add_key+0x1b8/0x310 Allocated by task 88: __kmalloc_noprof+0x1a7/0x490 do_one_initcall+0xa1/0x390 do_init_module+0x2df/0x840 Freed by task 90: kfree+0x131/0x3c0 trusted_tpm_exit+0x59/0xa0 [trusted] __do_sys_delete_module+0x346/0x510 unregister_key_type()를 리소스 해제 전에 이동시켰다. 이는 새로운 조회를 중단하고 진행 중인 키 작업이 완료될 때까지 대기하여 백엔드 상태가 파괴되기 전에 이를 방지한다.
CVE-2026-89762
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: apparmor: begin_current_label_crit_section()로 인해 발생하는 cred UAF 수정 AppArmor의 begin_current_label_crit_section()는 많은 LSM 훅(특히 VFS/소켓 관련 훅)에서 호출되는 위험한 함수로, 현재 creds가 참조하는 레이블이 FLAG_STALE로 표시되어 있는지 확인하고, 그렇다면 aa_replace_current_label()을 사용하여 새로운 레이블을 사용하는 업데이트된 버전으로 creds를 교체하려고 시도한다. 첫 번째 문제는 커널 내에서 현재 creds에 대한 포인터를 가져가서 creds를 교체하는 보안 훅 호출 이후에도 이를 접근하는 경우 `struct cred`의 UAF가 직접 발생할 수 있다는 점이다. 예를 들어: ``` const struct cred *cred = current_cred(); alloc_file_pseudo(...); uid_t uid = cred->euid; ``` 커널 내에서 실제로 이런 일이 발생하는지는 알 수 없으나, 이 패턴이 UAF로 이어질 수 있다는 점은 매우 놀랍다. 두 번째 문제는 aa_replace_current_label()이 오버라이드된 자격 증명으로 실행될 때 문제가 발생한다는 점이다. aa_replace_current_label()은 `current_cred() != current_real_cred()`인 경우 중단하는데(proc_pid_attr_write()의 검사와 유사), 이 검사는 오버라이드된 creds가 객관적 creds와 동일할 수 있기 때문에 신뢰할 수 없다. 따라서 대략 다음 시나리오에서 문제가 발생한다: 1. 작업이 <creds A>로 시작(객관적 및 주관적 creds 모두), refcount=2 2. 작업이 오버라이드를 위해 <creds A>에 추가 참조 획득 3. 작업이 override_creds(<creds A>) 호출, 이전 주관적 creds(<creds A>) 포인터 반환 4. 작업이 AppArmor LSM 훅 진입 5. AppArmor가 객관적/주관적 creds가 동일한지 확인 6. AppArmor가 두 cred 포인터를 <creds B>로 교체하고 <creds A>에 대한 참조 2개 해제 7. 작업이 AppArmor LSM 훅 종료 8. 작업이 revert_creds(<creds A>) 호출 9. 이제 task->cred는 <creds A>이고 task->real_cred는 <creds B>이나 task_struct는 논리적으로 <creds B>에 대한 두 참조를 보유 10. 다른 작업이 오버라이드에 사용된 <creds A>에 대한 추가 참조 해제, refcount 0으로 감소 11. 이제 task->real_cred가 해제된 creds를 가리킴 이 시점부터 current_cred()에 대한 모든 접근은 UAF가 된다. 내 테스트 케이스에서는 프로파일을 사용하는 프로세스가 FUSE 패스스루 파일에서 전체 파이프로 splice() 중 차단된 상태에서 aa-disable을 실행한다. 프로파일 업데이트 후 파이프가 비어 splice()가 재개되고, 자격 증명이 동기화되지 않아 이후 getuid() 시스템 호출에서 KASAN UAF 오류가 발생한다. 이를 해결하기 위해 creds를 직접 교체하는 대신 현재 시스템 호출 종료 시 실행되는 task_work를 통해 수행한다. (cred 교체 시점은 정확성에 영향을 주지 않으며, 새 레이블의 참조 횟수를 불필요하게 변경하지 않기 위한 성능 최적화이다.) 이 변경 후에도 AppArmor는 sb_pivotroot LSM 훅에서 직접 cred 교체를 수행하며, VFS ->write() 콜백 내 proc_pid_attr_write()를 통해서도 직접 cred 교체가 발생할 수 있다. aa_dup_task_ctx()에 대해서는 두 가지 선택지가 있다: 전체 aa_task_ctx 복사 후 new->label_replacement_pending를 명시적으로 재설정하거나, 멤버를 수동으로 복사하는 것이다. 나는 버그를 더 명확히 하기 위해 멤버를 수동으로 복사하는 쪽으로 전환하고 있다.
CVE-2026-89761
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: apparmor: 레이블 벡터를 널 종료할 때 발생하는 범위 밖 쓰기 문제 수정 aa_vec_unique() 함수는 VEC_FLAG_TERMINATE가 전달되면 vec[n - dups] 위치에 널 종료 문자를 삽입한다. 만약 모든 구성 요소가 서로 다르면 중복이 제거되지 않아 dups는 0이 되고 종료 문자는 vec[n]에 위치하게 되므로 호출자는 n + 1개의 항목 공간을 제공해야 한다. aa_label_strn_parse() 함수는 vec_setup(profile, vec, len, gfp)로 벡터를 설정한 후 aa_vec_unique(vec, len, VEC_FLAG_TERMINATE)를 호출하지만, vec_setup()은 종료 문자 항목을 예약하지 않는다. LOCAL_VEC_ENTRIES 이하에서는 LOCAL_VEC_ENTRIES 포인터의 로컬 배열을 사용하고, 그 이상에서는 정확히 len 개수만큼 포인터를 할당한다. 따라서 len이 LOCAL_VEC_ENTRIES일 때 종료 문자는 로컬 배열 끝을 넘어가고, len이 더 클 경우 할당된 메모리 끝을 넘어가게 된다. len은 레이블 이름 내 "//&"로 구분된 구성 요소 수에서 유래하며, label_count_strn_entries()는 이를 제한하지 않는다. 권한이 없는 작업이 /proc/self/attr/apparmor/current에 쓰거나 lsm_set_self_attr(2)를 통해 파싱에 도달할 수 있는데, 두 경로 모두 do_setattr()을 거치며 변경 권한 확인 전에 이름이 파싱된다. securityfs의 .access 파일(모드 0666) 뒤에 있는 query_label() 경로는 권한 검사를 전혀 수행하지 않는다. 모든 구성 요소는 로드된 프로파일로 해석되어야 하므로 정책이 로드된 시스템이 필요하다. 다른 두 VEC_FLAG_TERMINATE 사용자는 aa_label_alloc()이 이미 "벡터의 널 종료 문자 항목 +1" 크기로 레이블 벡터를 할당한 상태에서 작동한다. vec_setup()과 DEFINE_VEC()에서 동일한 항목을 예약해야 하며, 호출자에서 len + 1을 전달하면 len == LOCAL_VEC_ENTRIES가 로컬 배열 밖으로 이동하여 kzalloc()으로 할당된다.
CVE-2026-89760
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: mm, swap: 스왑 캐시에 있는 최대 절전 슬롯을 해제하지 않음 스왑 캐시에 folio가 있는 슬롯은 folio가 캐시를 떠날 때 해제되며, 카운트가 떨어질 때 해제되지 않는다. swap_put_entries_cluster()는 이 규칙을 따른다. swap_free_hibernation_slot()는 그렇지 않으며, folio가 슬롯에 있든 없든 __swap_cluster_free_entries()를 호출한다. 클러스터 리드어헤드는 슬롯에 folio를 둘 수 있다. 이는 결함이 있는 항목 주변의 raw page_cluster 크기 오프셋 창을 탐색하며, 최대 절전 슬롯은 folio가 아니고 카운트가 0이 아니기 때문에 __swap_cache_add_check()를 통과한다. 슬롯을 해제하면 해당 folio 아래의 항목이 지워진다. 이제 folio는 스왑 테이블에서 접근할 수 없으며, 오프셋은 할당자로 돌아간다. 그러나 folio는 여전히 LRU에 있으므로 나중에 회수가 가능하다. 이후 folio->swap에서 이전 오프셋을 가져와 테이블 항목을 덮어쓰는데, 그 시점에는 다른 항목에 속할 수 있다. 이 버그는 무음 메모리 손상, 프로세스 충돌 또는 완전히 관련 없는 사용자 공간 애플리케이션 간 데이터 불안정을 유발할 수 있으며, 일반적으로 uswsusp가 최대 절전 이미지를 준비할 때 발생한다. 이 문제는 최대 절전 슬롯에 스왑 테이블 내 고유 마커를 부여하는 작업 중에 발견되었으며, Kairui와 논의되었다. (https://lore.kernel.org/linux-mm/abp7aDgYLrxF3Me8@KASONG-MC4/) 보고된 바 없으므로 Reported-by/Closes는 없다. 해제 전에 캐시된 folio를 확인한다. 슬롯은 스왑 캐시만 보유하는 일반 상태로 남아 folio가 캐시를 떠날 때, 아래의 회수 또는 이후 정상 회수를 통해 해제된다.
CVE-2026-89759
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: mm/kmemleak: avoid soft lockup when scanning task stacks Patch series "mm/kmemleak: avoid soft lockup when scanning task", v3. kmemleak_scan() scans every task stack under one rcu_read_lock() with no reschedule point, which can trip the soft lockup watchdog on hosts with very many threads. That prints the following message, depending on the workload+host configuration: watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537] scan_block kmemleak_scan kmemleak_scan_thread kthread Patch 1 walks the tasks with find_ge_pid() so the scan reschedules between tasks Patches 2-3 let the scan loops stop early once a scan is interrupted. This patch (of 3): kmemleak_scan() walks every thread and scans its kernel stack under a single rcu_read_lock() with no reschedule point. On a host with very many threads -- amplified by KASAN/lockdep in debug builds -- this loop can hog a CPU long enough to trip the soft lockup watchdog: watchdog: BUG: soft lockup - CPU#35 stuck for 22s! [kmemleak:537] scan_block kmemleak_scan kmemleak_scan_thread kthread A cond_resched() cannot be added directly: the loop runs inside an RCU read-side critical section. Walk the tasks one PID at a time with find_ge_pid(), taking the RCU read lock only to look up and pin each task. The stack is then scanned with no lock held, so cond_resched() runs between tasks and the scan stops early on scan_should_stop(). This follows the next_tgid()/task_seq_get_next() iteration pattern and keeps each RCU critical section short.
CVE-2026-89758
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: mm/mempolicy: folios를 큐잉할 때 존재하지 않는 PMD를 건너뜀 패치 시리즈 "mm: walk 콜백에서 디바이스 전용 PMD 처리", v3. 커밋 368076f52ebe("mm/huge_memory: PMD 작업에 디바이스 전용 THP 지원 추가") 이후, HMM 기반 GPU 드라이버가 migrate_vma_pages()를 통해 익명 THP folio를 디바이스 메모리로 마이그레이션할 때 PMD가 디바이스 전용 스왑 엔트리를 가질 수 있다. pmd_trans_huge_lock()는 이러한 PMD에 대해 성공하며(pmd_is_huge()는 존재하지 않거나 none이 아닌 모든 큰 PMD에 대해 true를 반환), 따라서 이전에는 존재하는 THP 또는 마이그레이션 엔트리를 가정했던 여러 MM 워크 콜백이 이제 디바이스 전용 PM드와 함께 호출될 수 있다. 결과는 디버그 커널에서 VM_BUG_ON() 발생, 잘못된 vmemmap 역참조로 인한 oops, 또는 별개의 라이브 folio를 LRU에서 조용히 격리하는 경우까지 다양하다. 이 패치(3개 중 하나): queue_folios_pmd()는 pmd_trans_huge_lock() 하에서 호출되며, 여기서 pmd_is_huge() 검사는 존재하지 않거나 none이 아닌 모든 PMD 소프트리프에 대해 true를 반환한다. 이러한 PMD를 pmd_folio()에 전달하면 소프트리프 인코딩을 하드웨어 PFN으로 처리하여 잘못된 folio 포인터를 반환할 수 있다. queue_folios_pte_range()를 반영하여 folio를 조회하기 전에 존재하지 않는 엔트리를 처리한다. 마이그레이션 엔트리는 실패로 계산하지만, 디바이스 전용 엔트리와 같은 다른 존재하지 않는 PMD는 건너뛴다. 잠재적 트리거: HMM 기반 GPU 드라이버가 migrate_vma_pages()를 통해 익명 THP folio를 디바이스 메모리로 마이그레이션하여 디바이스 전용 PMD를 남긴다. 이후 사용자 공간에서 해당 범위에 대해 mbind(), migrate_pages() 또는 set_mempolicy_home_node()를 호출한다.
CVE-2026-89757
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: mm/mglru: fix and remove redundant unevictable folio handling sort_folio() has a shortcut for moving folios that are no longer evictable but are still sitting on a generation list. However, this shortcut is buggy. It does not follow the PG_lru usage convention, and it has a more serious issue. Unevictable folios are not threaded on lists[LRU_UNEVICTABLE], so that folio->lru can be reused to hold folio->mlock_count (see the comment in lruvec_init()). Hence lruvec_add_folio() skips the list_add() for them, and every other place that turns a folio unevictable initialises mlock_count explicitly: lru_add() sets it to 0, __mlock_folio() and __mlock_new_folio() set it to !!folio_test_mlocked(folio). sort_folio() sets nothing, and the lru_gen_del_folio() right above it may have already poisoned folio->lru via list_del(), so mlock_count ends up aliasing LIST_POISON2, which reads as 0x122, i.e. 290. The result is user visible. On munlock, __munlock_folio() decrements that bogus count, finds it still non-zero and bails out before clearing PG_mlocked, so the folio remains unevictable and the Mlocked accounting stays inflated until the folio is freed. The shortcut also touches the LRU flags in the wrong order. It calls lru_gen_del_folio() while PG_lru is still set, so a concurrent folio_test_clear_lru() (e.g. compaction, folio_isolate_lru()) can succeed on a folio that has already been taken off the generation list, which may lead to unexpected behavior. So fix it by isolating them as common folios and letting the generic shrink path cull them. This matches the classical LRU behavior, and there should be no visible effect on the generic eviction or isolation behavior. There is no performance concern either, such a folio goes through this once, and then it is off the generation lists for good.
CVE-2026-89756
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: mm/migrate: report RCU-tasks quiescent states in migrate_pages_batch() migrate_pages_batch() unmaps each folio before moving it, and every unmap runs the mmu_notifier invalidate callbacks. On KVM hosts try_to_migrate() ends up in kvm_mmu_notifier_invalidate_range_start() -> tdp_mmu_zap_leafs(), which is expensive, so unmapping a large batch keeps the CPU busy for a long time. The loop already calls cond_resched(), but on PREEMPTION kernels that is a no-op, and involuntary preemption is not a Tasks-RCU quiescent state. A long batch therefore never reports a quiescent state, and the migrating task (e.g. kcompactd) becomes a Tasks-RCU holdout, stalling the Tasks-RCU grace period for minutes, which is common at Meta fleet: INFO: rcu_tasks detected stalls on tasks: 0000000055349ecc: .. nvcsw: 1157401/1157401 holdout: 1 idle_cpu: -1/56 task:kcompactd0 state:R running task Call Trace: tdp_mmu_zap_leafs tdp_mmu_next_root gfn_to_pfn_cache_invalidate_start kvm_mmu_notifier_invalidate_range_start __mmu_notifier_invalidate_range_start try_to_migrate_one try_to_migrate migrate_pages_batch migrate_pages compact_zone compact_node kcompactd kthread Use cond_resched_tasks_rcu_qs() so a quiescent state is reported even when cond_resched() does nothing. This has also been discussed at [1]