Closed Bug 2090944 Opened 11 days ago Closed 10 days ago

Perma Linting rust /builds/worker/checkouts/gecko/Cargo.lock:-1:-1 | Crate depends on a vulnerable version of libsqlite3-sys.

Categories

(Core :: Graphics: WebRender, defect, P5)

defect

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: Sylvestre, NeedInfo)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure)

Attachments

(1 external file)

Filed by: abutkovits [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=605904530&repo=autoland&task=amv5D0ZlSAWj21w5nAszwA.0
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/amv5D0ZlSAWj21w5nAszwA/runs/0/artifacts/public/logs/live_backing.log


[task 2026-11-09T13:32:33.067+00:00] + PATH=/builds/worker/fetches/cargo-audit/:/builds/worker/fetches/rustc/bin/:/builds/worker/.cargo/bin/:/builds/worker/fetches/uv:/builds/worker/fetches/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[task 2026-11-09T13:32:33.067+00:00] + ./mach lint -v --warnings=soft -l cargo-audit -f treeherder -f json:/builds/worker/mozlint.json .
[task 2026-11-09T13:32:51.306+00:00] Creating default state directory: /builds/worker/.mozbuild
[task 2026-11-09T13:32:51.306+00:00] Creating local state directory: /builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69
[task 2026-11-09T13:32:51.306+00:00] Creating the 'lint' site at /builds/worker/.mozbuild/srcdirs/gecko-8a5b87fe5d69/_virtualenvs/lint
[task 2026-11-09T13:32:51.660+00:00] 13:32:51.660 mozlint (124) | setup for cargo-audit finished in 0.0 seconds
[task 2026-11-09T13:32:51.677+00:00] 13:32:51.677 cargo-audit (276) | Passing the following paths:
[task 2026-11-09T13:32:51.677+00:00] /builds/worker/checkouts/gecko/Cargo.lock
[task 2026-11-09T13:32:54.682+00:00] 13:32:54.682 cargo-audit (276) | Finished in 3.02 seconds
[task 2026-11-09T13:32:54.696+00:00] TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/Cargo.lock:-1:-1 | Crate depends on a vulnerable version of libsqlite3-sys.
[task 2026-11-09T13:32:54.696+00:00] 
[task 2026-11-09T13:32:54.696+00:00] Advisory:
[task 2026-11-09T13:32:54.696+00:00] `libsqlite3-sys` via C SQLite CVE-2026-119375
[task 2026-11-09T13:32:54.696+00:00] Package: libsqlite3-sys
[task 2026-11-09T13:32:54.696+00:00] ID: RUSTSEC-2026-0459
[task 2026-11-09T13:32:54.696+00:00] CVSS: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
[task 2026-11-09T13:32:54.696+00:00] Report date: 2026-10-30
[task 2026-11-09T13:32:54.696+00:00] SQLite versions before 3.54.0 can return uninitialized page-cache memory when a process opens a database file together with a sibling write-ahead-log (`-wal`) file whose page size differs from the database's. A crafted pair of files can make ordinary queries return stale bytes from the process's memory. The attack vector is local and needs the victim to open the files.
[task 2026-11-09T13:32:54.696+00:00] 
[task 2026-11-09T13:32:54.696+00:00] As `libsqlite3-sys` bundles SQLite when it is built from its bundled source (the `bundled` feature, which `rusqlite`'s `bundled` feature enables), it is susceptible to the vulnerability. The releases `0.6.0` to `0.38.2` bundle SQLite `3.13.0` to `3.53.2` and are affected; the earlier releases contain no SQLite source. `libsqlite3-sys` was updated to bundle the patched version of SQLite in `0.39.0` (SQLite `3.54.0`) and `0.39.1` (SQLite `3.54.1`), released with [`rusqlite` 0.41](https://github.com/rusqlite/rusqlite/releases/tag/v0.41.0). `libsqlite3-sys` `0.39` declares Rust 1.88 and `rusqlite` `0.41` declares Rust 1.89.
[task 2026-11-09T13:32:54.696+00:00] 
[task 2026-11-09T13:32:54.696+00:00] Only a process that opens a database file, with its `-wal`, that a less trusted party could have written is exposed. A build that links a system SQLite instead of the bundled source is not affected by the copy in this crate; its exposure is that of the system library's version. The `bundled-sqlcipher` feature builds SQLCipher instead of SQLite; in `0.39.0` and `0.39.1` it depends on `sqlcipher-src =419.0.6`, which bundles SQLite `3.53.4` and is affected.
[task 2026-11-09T13:32:54.696+00:00] URL: https://nvd.nist.gov/vuln/detail/CVE-2026-119375
[task 2026-11-09T13:32:54.696+00:00] Patched versions: [
[task 2026-11-09T13:32:54.696+00:00]   ">=0.39.0"
[task 2026-11-09T13:32:54.696+00:00] ]
[task 2026-11-09T13:32:54.696+00:00] Unaffected versions: [
[task 2026-11-09T13:32:54.696+00:00]   "<0.6.0"
[task 2026-11-09T13:32:54.696+00:00] ]
[task 2026-11-09T13:32:54.696+00:00] Advisory metadata: {
[task 2026-11-09T13:32:54.696+00:00]   "aliases": [
[task 2026-11-09T13:32:54.696+00:00]     "CVE-2026-119375",
[task 2026-11-09T13:32:54.696+00:00]     "GHSA-72w2-rjgg-q729"
[task 2026-11-09T13:32:54.696+00:00]   ],
[task 2026-11-09T13:32:54.696+00:00]   "related": [],
[task 2026-11-09T13:32:54.696+00:00]   "collection": "crates",
[task 2026-11-09T13:32:54.696+00:00]   "categories": [
[task 2026-11-09T13:32:54.696+00:00]     "memory-exposure"
[task 2026-11-09T13:32:54.696+00:00]   ],
[task 2026-11-09T13:32:54.696+00:00]   "keywords": [
[task 2026-11-09T13:32:54.696+00:00]     "sqlite",
[task 2026-11-09T13:32:54.696+00:00]     "wal",
[task 2026-11-09T13:32:54.696+00:00]     "uninitialized-memory",
[task 2026-11-09T13:32:54.696+00:00]     "information-disclosure"
[task 2026-11-09T13:32:54.696+00:00]   ],
[task 2026-11-09T13:32:54.696+00:00]   "informational": null,
[task 2026-11-09T13:32:54.696+00:00]   "references": [
[task 2026-11-09T13:32:54.696+00:00]     "https://sqlite.org/bugs/info/2026-08-17T15:54:41Z",
[task 2026-11-09T13:32:54.696+00:00]     "https://github.com/sqlite/sqlite/commit/e5bf119821f25be1d7f10ef0a2edbe175289166e",
[task 2026-11-09T13:32:54.696+00:00]     "https://sqlite.org/releaselog/3_54_0.html",
[task 2026-11-09T13:32:54.696+00:00]     "https://github.com/rusqlite/rusqlite/releases/tag/v0.41.0"
[task 2026-11-09T13:32:54.696+00:00]   ],
[task 2026-11-09T13:32:54.696+00:00]   "source": null,
[task 2026-11-09T13:32:54.696+00:00]   "withdrawn": null,
[task 2026-11-09T13:32:54.696+00:00]   "license": "CC0-1.0"
[task 2026-11-09T13:32:54.696+00:00] }
[task 2026-11-09T13:32:54.696+00:00] 
[task 2026-11-09T13:32:54.696+00:00] Package info: {
[task 2026-11-09T13:32:54.696+00:00]   "name": "libsqlite3-sys",
[task 2026-11-09T13:32:54.696+00:00]   "version": "0.35.0",
[task 2026-11-09T13:32:54.696+00:00]   "source": "registry+https://github.com/rust-lang/crates.io-index",
[task 2026-11-09T13:32:54.696+00:00]   "checksum": "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f",
[task 2026-11-09T13:32:54.696+00:00]   "dependencies": [
[task 2026-11-09T13:32:54.696+00:00]     {
[task 2026-11-09T13:32:54.696+00:00]       "name": "cc",
[task 2026-11-09T13:32:54.696+00:00]       "version": "1.4.5",
[task 2026-11-09T13:32:54.696+00:00]       "source": null
[task 2026-11-09T13:32:54.696+00:00]     },
[task 2026-11-09T13:32:54.696+00:00]     {
[task 2026-11-09T13:32:54.696+00:00]       "name": "pkg-config",
[task 2026-11-09T13:32:54.696+00:00]       "version": "0.3.34",
[task 2026-11-09T13:32:54.696+00:00]       "source": "registry+https://github.com/rust-lang/crates.io-index"
[task 2026-11-09T13:32:54.696+00:00]     },
[task 2026-11-09T13:32:54.696+00:00]     {
[task 2026-11-09T13:32:54.696+00:00]       "name": "vcpkg",
[task 2026-11-09T13:32:54.696+00:00]       "version": "0.2.999",
[task 2026-11-09T13:32:54.696+00:00]       "source": null
[task 2026-11-09T13:32:54.696+00:00]     }
[task 2026-11-09T13:32:54.696+00:00]   ],
[task 2026-11-09T13:32:54.696+00:00]   "replace": null
[task 2026-11-09T13:32:54.696+00:00] } (cargo-audit)
[taskcluster 2026-11-09T13:32:57.309Z]                        Exit Code: 1
[taskcluster 2026-11-09T13:32:57.309Z]                        User Time: 13.356ms
[taskcluster 2026-11-09T13:32:57.309Z]                      Kernel Time: 13.356ms
[taskcluster 2026-11-09T13:32:57.309Z]                        Wall Time: 1m13.993702651s
[taskcluster 2026-11-09T13:32:57.309Z]  Average Available System Memory: 29.25 GiB
[taskcluster 2026-11-09T13:32:57.309Z]       Average System Memory Used: 2.09 GiB
[taskcluster 2026-11-09T13:32:57.309Z]          Peak System Memory Used: 2.78 GiB
[taskcluster 2026-11-09T13:32:57.309Z]              Total System Memory: 31.34 GiB
[taskcluster 2026-11-09T13:32:57.309Z]                           Result: FAILED
[taskcluster 2026-11-09T13:32:57.309Z] === Task Finished ===
[taskcluster 2026-11-09T13:32:57.309Z] Task Duration: 1m13.994205071s
[taskcluster 2026-11-09T13:32:57.638Z] [mounts] Preserving cache: Moving "/home/task_amv5D0ZlSAWj2_0/cache0" to "/home/generic-worker/caches/Txbh3iFnST2sHO-KgzCOng"
[taskcluster 2026-11-09T13:32:57.638Z] [mounts] Preserving cache: Moving "/home/task_amv5D0ZlSAWj2_0/cache1" to "/home/generic-worker/caches/MgT1I17TR7C6PAlGShkbLQ"
[taskcluster 2026-11-09T13:32:57.638Z] [mounts] Preserving cache: Moving "/home/task_amv5D0ZlSAWj2_0/cache2" to "/home/generic-worker/caches/Y94-3v3KTradGfNumSg-CA"
[taskcluster:error] exit status 1
Summary: Perma Lint /builds/worker/checkouts/gecko/Cargo.lock:-1:-1 | Crate depends on a vulnerable version of libsqlite3-sys. → Perma Linting rust /builds/worker/checkouts/gecko/Cargo.lock:-1:-1 | Crate depends on a vulnerable version of libsqlite3-sys.
Flags: needinfo?(tom)
Flags: needinfo?(markh)

Gecko builds libsqlite3-sys with in_gecko and links third_party/sqlite3, so
the bundled SQLite the advisory is about is not compiled.

Assignee: nobody → sledru
Status: NEW → ASSIGNED
Flags: needinfo?(tom)
Flags: needinfo?(markh)
Pushed by sledru@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/f0eec3bcae14 https://hg.mozilla.org/integration/autoland/rev/cee6ead315a7 Ignore RUSTSEC-2026-0459 libsqlite3-sys advisory r=supply-chain-reviewers,afranchuk DONTBUILD

FTR, application-services is built with a bundled sqlite. Currently m-c doesn't ship that but will soon.

Status: ASSIGNED → RESOLVED
Closed: 10 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch

(In reply to Mark Hammond [:markh] [:mhammond] from comment #3)

FTR, application-services is built with a bundled sqlite. Currently m-c doesn't ship that but will soon.

will we have two copies of sqlite in the binary?

Flags: needinfo?(markh)
See Also: → 2090929

(In reply to Sylvestre Ledru [:Sylvestre] from comment #5)

(In reply to Mark Hammond [:markh] [:mhammond] from comment #3)

FTR, application-services is built with a bundled sqlite. Currently m-c doesn't ship that but will soon.

will we have two copies of sqlite in the binary?

Afaik, and hopefully didn't change, we use rusqlite/in_gecko that byapsses libsqlite3 and uses our version instead. But the bindings used are generated from libsqlite3.
I hope application-services will continue doing that.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: