# CVE-2022-48795: parisc: Fix data TLB miss in sba\_unmap\_sg

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-07-16T11:43:50.129Z
- **Modified:** 2026-06-17T05:16:12.833Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f23f0444ead4d941165aa82ce2fcbb997dc00e97; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de75676ee99bf9f25b1124ff301b3f7b8ba597d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 867e50231c7605547d9334904d70a181f39f2d9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< efccc9b0c7e28d0eb7918a236e59f60dc23db4c3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8f519d7df66c334b5e08f896ac70ee3b53add3b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e40ae3133ed87d6d526f3c8fc6a5f9a2d72dcdbf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7d6f44a0fa716a82969725516dc0b16bc7cd514
- Anyone running Linux 2.6.12

## Description

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

parisc: Fix data TLB miss in sba\_unmap\_sg

Rolf Eike Beer reported the following bug:

\[1274934.746891\] Bad Address (null pointer deref?): Code=15 (Data TLB miss fault) at addr 0000004140000018
\[1274934.746891\] CPU: 3 PID: 5549 Comm: cmake Not tainted 5.15.4-gentoo-parisc64 \#4
\[1274934.746891\] Hardware name: 9000/785/C8000
\[1274934.746891\]
\[1274934.746891\]      YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
\[1274934.746891\] PSW: 00001000000001001111111000001110 Not tainted
\[1274934.746891\] r00-03  000000ff0804fe0e 0000000040bc9bc0 00000000406760e4 0000004140000000
\[1274934.746891\] r04-07  0000000040b693c0 0000004140000000 000000004a2b08b0 0000000000000001
\[1274934.746891\] r08-11  0000000041f98810 0000000000000000 000000004a0a7000 0000000000000001
\[1274934.746891\] r12-15  0000000040bddbc0 0000000040c0cbc0 0000000040bddbc0 0000000040bddbc0
\[1274934.746891\] r16-19  0000000040bde3c0 0000000040bddbc0 0000000040bde3c0 0000000000000007
\[1274934.746891\] r20-23  0000000000000006 000000004a368950 0000000000000000 0000000000000001
\[1274934.746891\] r24-27  0000000000001fff 000000000800000e 000000004a1710f0 0000000040b693c0
\[1274934.746891\] r28-31  0000000000000001 0000000041f988b0 0000000041f98840 000000004a171118
\[1274934.746891\] sr00-03  00000000066e5800 0000000000000000 0000000000000000 00000000066e5800
\[1274934.746891\] sr04-07  0000000000000000 0000000000000000 0000000000000000 0000000000000000
\[1274934.746891\]
\[1274934.746891\] IASQ: 0000000000000000 0000000000000000 IAOQ: 00000000406760e8 00000000406760ec
\[1274934.746891\]  IIR: 48780030    ISR: 0000000000000000  IOR: 0000004140000018
\[1274934.746891\]  CPU:        3   CR30: 00000040e3a9c000 CR31: ffffffffffffffff
\[1274934.746891\]  ORIG\_R28: 0000000040acdd58
\[1274934.746891\]  IAOQ\[0\]: sba\_unmap\_sg+0xb0/0x118
\[1274934.746891\]  IAOQ\[1\]: sba\_unmap\_sg+0xb4/0x118
\[1274934.746891\]  RP(r2): sba\_unmap\_sg+0xac/0x118
\[1274934.746891\] Backtrace:
\[1274934.746891\]  \[\<00000000402740cc\>\] dma\_unmap\_sg\_attrs+0x6c/0x70
\[1274934.746891\]  \[\<000000004074d6bc\>\] scsi\_dma\_unmap+0x54/0x60
\[1274934.746891\]  \[\<00000000407a3488\>\] mptscsih\_io\_done+0x150/0xd70
\[1274934.746891\]  \[\<0000000040798600\>\] mpt\_interrupt+0x168/0xa68
\[1274934.746891\]  \[\<0000000040255a48\>\] \_\_handle\_irq\_event\_percpu+0xc8/0x278
\[1274934.746891\]  \[\<0000000040255c34\>\] handle\_irq\_event\_percpu+0x3c/0xd8
\[1274934.746891\]  \[\<000000004025ecb4\>\] handle\_percpu\_irq+0xb4/0xf0
\[1274934.746891\]  \[\<00000000402548e0\>\] generic\_handle\_irq+0x50/0x70
\[1274934.746891\]  \[\<000000004019a254\>\] call\_on\_stack+0x18/0x24
\[1274934.746891\]
\[1274934.746891\] Kernel panic - not syncing: Bad Address (null pointer deref?)

The bug is caused by overrunning the sglist and incorrectly testing
sg\_dma\_len(sglist) before nents. Normally this doesn't cause a crash,
but in this case sglist crossed a page boundary. This occurs in the
following code:

	while (sg\_dma\_len(sglist) && nents--) {

The fix is simply to test nents first and move the decrement of nents
into the loop.

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f23f0444ead4d941165aa82ce2fcbb997dc00e97; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de75676ee99bf9f25b1124ff301b3f7b8ba597d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 867e50231c7605547d9334904d70a181f39f2d9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< efccc9b0c7e28d0eb7918a236e59f60dc23db4c3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8f519d7df66c334b5e08f896ac70ee3b53add3b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e40ae3133ed87d6d526f3c8fc6a5f9a2d72dcdbf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7d6f44a0fa716a82969725516dc0b16bc7cd514 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-48795.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < f23f0444ead4d941165aa82ce2fcbb997dc00e97; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < de75676ee99bf9f25b1124ff301b3f7b8ba597d4; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 867e50231c7605547d9334904d70a181f39f2d9e; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 867e50231c7605547d9334904d70a181f39f2d9e, Linux 8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2

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.
```

## FAQ

### Is CVE-2022-48795 being exploited?

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

### How serious is CVE-2022-48795?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-48795?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f23f0444ead4d941165aa82ce2fcbb997dc00e97; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< de75676ee99bf9f25b1124ff301b3f7b8ba597d4; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 867e50231c7605547d9334904d70a181f39f2d9e; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< efccc9b0c7e28d0eb7918a236e59f60dc23db4c3; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< f8f519d7df66c334b5e08f896ac70ee3b53add3b; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e40ae3133ed87d6d526f3c8fc6a5f9a2d72dcdbf; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< b7d6f44a0fa716a82969725516dc0b16bc7cd514; Linux 2.6.12.

### Is there a fix for CVE-2022-48795?

Yes. Fixed in Linux 867e50231c7605547d9334904d70a181f39f2d9e, Linux 8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2. No fix listed yet: follow the vendor advisory.

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

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.

## References

- patch: <https://git.kernel.org/stable/c/f23f0444ead4d941165aa82ce2fcbb997dc00e97>
- patch: <https://git.kernel.org/stable/c/de75676ee99bf9f25b1124ff301b3f7b8ba597d4>
- patch: <https://git.kernel.org/stable/c/867e50231c7605547d9334904d70a181f39f2d9e>
- patch: <https://git.kernel.org/stable/c/efccc9b0c7e28d0eb7918a236e59f60dc23db4c3>
- patch: <https://git.kernel.org/stable/c/f8f519d7df66c334b5e08f896ac70ee3b53add3b>
- patch: <https://git.kernel.org/stable/c/8c8e949ae81e7f5ab58f9f9f8e9b573b93173dd2>
- patch: <https://git.kernel.org/stable/c/e40ae3133ed87d6d526f3c8fc6a5f9a2d72dcdbf>
- patch: <https://git.kernel.org/stable/c/b7d6f44a0fa716a82969725516dc0b16bc7cd514>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-48795>

HTML: <https://flawdb.com/CVE-2022-48795> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-48795>
