bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2020-27815

7.8high

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

A flaw was found in the JFS filesystem code in the Linux Kernel which allows a local attacker with the ability to set extended attributes to panic the system, causing memory corruption or escalating privileges. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.

Published 2021-05-26NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References 10
Review Av26.10.0x86_64Not affected✓ accepted by a member, 2026-11-12 · settles 8 of 8

Fable 5.1 · high confidence · 2026-11-05

CVE-2020-27815 is an out-of-bounds array index in the JFS dmap tree code (fs/jfs/jfs_dmap.c, dbAdjTree), fixed upstream in v5.10-rc7 by commit c61b3e48. Linux 6.18.60 already contains the fix: dbAdjTree() in this tree carries the bounds check (now in a later, further hardened form with WARN_ON_ONCE(lp >= size || lp < 0)).

Independently, JFS is not compiled at all: CONFIG_JFS_FS is not set in the kernel .config, fs/Makefile only descends into fs/jfs/ under CONFIG_JFS_FS, and no jfs_dmap.o exists in the build directory.

NVD's version match is simply a stale range on the generic linux_kernel CPE.

Evidence 6
  1. Fix present: index 'lp' is bounds-checked against CTLTREESIZE/TREESIZE with WARN_ON_ONCE(lp >= size || lp < 0) before dmt_stree[lp] is accessed — this is the (post-)c61b3e48 code, not the vulnerable original.

    output/build/linux-6.18.60/fs/jfs/jfs_dmap.c:2864-2876 (dbAdjTree)

  2. # CONFIG_JFS_FS is not set — JFS filesystem support is not compiled into the kernel.

    output/build/linux-6.18.60/.config:4104

  3. obj-$(CONFIG_JFS_FS) += jfs/ — the whole fs/jfs directory is only built when CONFIG_JFS_FS is enabled.

    output/build/linux-6.18.60/fs/Makefile:110

  4. No JFS object files exist in the build output, confirming the subsystem was not compiled.

    output/build/linux-6.18.60/fs/jfs/ (no jfs_dmap.o)

  5. 139 Buildroot/Infix patches applied; none touch JFS (grep -i jfs returns nothing), so no local change reintroduces the issue.

    output/build/linux-6.18.60/.applied_patches_list

  6. No reference to jfs in the default service configuration; nothing in the product mounts or uses JFS.

    board/common/rootfs/etc/finit.conf, finit.d/

Version and patches

Affected: Linux < 5.10-rc7 (JFS dbAdjTree missing bounds check). Fixed upstream by commit c61b3e4839007668360ed8b87d7da96d2e59fc6c ("jfs: Fix array index bounds check in dbAdjTree", Dec 2020) and backported to stable 4.x/5.4 series. Linux 6.18.60 is far past the fix and contains the hardened check. None of the 139 applied patches touch fs/jfs. NVD's CPE match (cpe:2.3:o:linux:linux_kernel:6.18.60) is a stale/over-broad range.

Recommendation

No action. Document as N/A: fix is present in 6.18.60 and CONFIG_JFS_FS is disabled, so the affected code is neither vulnerable nor built into the image.

Open questions

None.

Members of Kernel Kit decide. Sign in if you are one.