This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate solana-perf

Dependencies

(35 total, 8 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 ahash^0.8.110.8.12up to date
 bincode^1.3.33.0.0out of date
 bv^0.11.10.11.1up to date
 bytes ⚠️^1.101.11.1maybe insecure
 caps^0.5.50.5.6up to date
 curve25519-dalek^4.1.34.1.3up to date
 dlopen2^0.5.00.8.2out of date
 fnv^1.0.71.0.7up to date
 libc^0.2.1770.2.180up to date
 log^0.4.280.4.29up to date
 nix^0.30.10.31.1out of date
 rand^0.8.50.9.2out of date
 rayon^1.11.01.11.0up to date
 serde^1.0.2281.0.228up to date
 solana-clock^3.0.03.0.0up to date
 solana-frozen-abi^3.0.13.1.2up to date
 solana-frozen-abi-macro^3.0.13.2.1up to date
 solana-hash^3.1.04.1.0out of date
 solana-keypair^3.0.13.1.0up to date
 solana-message^3.0.13.1.0up to date
 solana-metrics=3.1.83.1.8up to date
 solana-packet^3.0.04.0.0out of date
 solana-pubkey^3.0.04.0.0out of date
 solana-rayon-threadlimit=3.1.83.1.8up to date
 solana-sdk-ids^3.0.03.1.0up to date
 solana-short-vec^3.0.03.2.0up to date
 solana-signature^3.1.03.2.0up to date
 solana-signer^3.0.03.0.0up to date
 solana-system-interface^2.03.0.0out of date
 solana-system-transaction^3.0.03.0.0up to date
 solana-time-utils^3.0.03.0.0up to date
 solana-transaction^3.0.23.1.0up to date
 solana-transaction-context=3.1.83.1.8up to date
 solana-vote=3.1.83.1.8up to date
 solana-vote-program=3.1.83.1.8up to date

Dev dependencies

(6 total, 1 outdated)

CrateRequiredLatestStatus
 agave-logger=3.1.83.1.8up to date
 assert_matches^1.5.01.5.0up to date
 bencher^0.1.50.1.5up to date
 tikv-jemallocator^0.6.00.6.1up to date
 rand_chacha^0.3.10.10.0out of date
 test-case^3.3.13.3.1up to date

Security Vulnerabilities

bytes: Integer overflow in `BytesMut::reserve`

RUSTSEC-2026-0007

In the unique reclaim path of BytesMut::reserve, the condition

if v_capacity >= new_cap + offset

uses an unchecked addition. When new_cap + offset overflows usize in release builds, this condition may incorrectly pass, causing self.cap to be set to a value that exceeds the actual allocated capacity. Subsequent APIs such as spare_capacity_mut() then trust this corrupted cap value and may create out-of-bounds slices, leading to UB.

This behavior is observable in release builds (integer overflow wraps), whereas debug builds panic due to overflow checks.

PoC

use bytes::*;

fn main() {
    let mut a = BytesMut::from(&b"hello world"[..]);
    let mut b = a.split_off(5);

    // Ensure b becomes the unique owner of the backing storage
    drop(a);

    // Trigger overflow in new_cap + offset inside reserve
    b.reserve(usize::MAX - 6);

    // This call relies on the corrupted cap and may cause UB & HBO
    b.put_u8(b'h');
}

Workarounds

Users of BytesMut::reserve are only affected if integer overflow checks are configured to wrap. When integer overflow is configured to panic, this issue does not apply.