Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2022-48998

HIGH 7.8EPSS 15%

powerpc/bpf/32: Fix Oops on tail call tests

Mitigation

  • Upgrade Linux to 89d21e259a94f7d5582ec675aa445f5a79f347e4 or later.

Who should check

  • Anyone running Linux >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 747a6e547240baaaf41874d27333b87b87cfd24c; >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 89d21e259a94f7d5582ec675aa445f5a79f347e4
  • Anyone running Linux 5.13

Vulnerability facts

Affected
Linux >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 747a6e547240baaaf41874d27333b87b87cfd24c; >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 89d21e259a94f7d5582ec675aa445f5a79f347e4; Linux 5.13
Fixed in
Linux 747a6e547240baaaf41874d27333b87b87cfd24c, Linux 89d21e259a94f7d5582ec675aa445f5a79f347e4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: powerpc/bpf/32: Fix Oops on tail call tests test_bpf tail call tests end up as: test_bpf: #0 Tail call leaf jited:1 85 PASS test_bpf: #1 Tail call 2 jited:1 111 PASS test_bpf: #2 Tail call 3 jited:1 145 PASS test_bpf: #3 Tail call 4 jited:1 170 PASS test_bpf: #4 Tail call load/store leaf jited:1 190 PASS test_bpf: #5 Tail call load/store jited:1 BUG: Unable to handle kernel data access on write at 0xf1b4e000 Faulting instruction address: 0xbe86b710 Oops: Kernel access of bad area, sig: 11 [#1] BE PAGE_SIZE=4K MMU=Hash PowerMac Modules linked in: test_bpf(+) CPU: 0 PID: 97 Comm: insmod Not tainted 6.1.0-rc4+ #195 Hardware name: PowerMac3,1 750CL 0x87210 PowerMac NIP: be86b710 LR: be857e88 CTR: be86b704 REGS: f1b4df20 TRAP: 0300 Not tainted (6.1.0-rc4+) MSR: 00009032 <EE,ME,IR,DR,RI> CR: 28008242 XER: 00000000 DAR: f1b4e000 DSISR: 42000000 GPR00: 00000001 f1b4dfe0 c11d2280 00000000 00000000 00000000 00000002 00000000 GPR08: f1b4e000 be86b704 f1b4e000 00000000 00000000 100d816a f2440000 fe73baa8 GPR16: f2458000 00000000 c1941ae4 f1fe2248 00000045 c0de0000 f2458030 00000000 GPR24: 000003e8 0000000f f2458000 f1b4dc90 3e584b46 00000000 f24466a0 c1941a00 NIP [be86b710] 0xbe86b710 LR [be857e88] __run_one+0xec/0x264 [test_bpf] Call Trace: [f1b4dfe0] [00000002] 0x2 (unreliable) Instruction dump: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX ---[ end trace 0000000000000000 ]--- This is a tentative to write above the stack. The problem is encoutered with tests added by commit 38608ee7b690 ("bpf, tests: Add load store test case for tail call") This happens because tail call is done to a BPF prog with a different stack_depth. At the time being, the stack is kept as is when the caller tail calls its callee. But at exit, the callee restores the stack based on its own properties. Therefore here, at each run, r1 is erroneously increased by 32 - 16 = 16 bytes. This was done that way in order to pass the tail call count from caller to callee through the stack. As powerpc32 doesn't have a red zone in the stack, it was necessary the maintain the stack as is for the tail call. But it was not anticipated that the BPF frame size could be different. Let's take a new approach. Use register r4 to carry the tail call count during the tail call, and save it into the stack at function entry if required. This means the input parameter must be in r3, which is more correct as it is a 32 bits parameter, then tail call better match with normal BPF function entry, the down side being that we move that input parameter back and forth between r3 and r4. That can be optimised later. Doing that also has the advantage of maximising the common parts between tail calls and a normal function exit. With the fix, tail call tests are now successfull: test_bpf: #0 Tail call leaf jited:1 53 PASS test_bpf: #1 Tail call 2 jited:1 115 PASS test_bpf: #2 Tail call 3 jited:1 154 PASS test_bpf: #3 Tail call 4 jited:1 165 PASS test_bpf: #4 Tail call load/store leaf jited:1 101 PASS test_bpf: #5 Tail call load/store jited:1 141 PASS test_bpf: #6 Tail call error path, max count reached jited:1 994 PASS test_bpf: #7 Tail call count preserved across function calls jited:1 140975 PASS test_bpf: #8 Tail call error path, NULL target jited:1 110 PASS test_bpf: #9 Tail call error path, index out of range jited:1 69 PASS test_bpf: test_tail_calls: Summary: 10 PASSED, 0 FAILED, [10/10 JIT'ed]

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 747a6e547240baaaf41874d27333b87b87cfd24c; >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 89d21e259a94f7d5582ec675aa445f5a79f347e4—cvelist
Linux5.13—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2022-48998. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48998.md
Affected: Linux >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 747a6e547240baaaf41874d27333b87b87cfd24c; >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 89d21e259a94f7d5582ec675aa445f5a79f347e4; Linux 5.13
Fixed in: Linux 747a6e547240baaaf41874d27333b87b87cfd24c, Linux 89d21e259a94f7d5582ec675aa445f5a79f347e4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2022-48998 being exploited?

There is no confirmed exploitation: CVE-2022-48998 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2022-48998?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2022-48998?

Linux >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 747a6e547240baaaf41874d27333b87b87cfd24c; >= 51c66ad849a703d9bbfd7704c941827aed0fd9fd, < 89d21e259a94f7d5582ec675aa445f5a79f347e4; Linux 5.13.

Is there a fix for CVE-2022-48998?

Yes. Fixed in Linux 747a6e547240baaaf41874d27333b87b87cfd24c, Linux 89d21e259a94f7d5582ec675aa445f5a79f347e4. Upgrade Linux to 89d21e259a94f7d5582ec675aa445f5a79f347e4 or later.

How do I check if I'm affected by CVE-2022-48998?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors