BMW SUV X7 Check Engine Light On
What this problem usually means
On the G07 X7 xDrive40i (2019-2022) with the B58 3.0 turbo six, the characteristic check engine cause is the PCV diaphragm integrated into the plastic valve cover. When the diaphragm ruptures it creates a large vacuum leak: a high-pitched whistle at idle, heavy white or blue exhaust smoke as oil is pulled into the intake, a rough or unstable idle, increased oil consumption, and fault codes for lean fuel conditions (P0171, P0174) or misfires. BMW documented the failure in SIB B011423, with coverage to 15 years/150,000 miles for eligible vehicles. The cover's gasket is the second fault on the same part: it hardens, leaks oil onto the exhaust side, and can fill the spark plug wells and cause misfires.
Likely causes
- Ruptured PCV diaphragm integrated in the valve cover (whistle, smoke, lean codes P0171/P0174, SIB B011423)
- Valve cover gasket leak (burning oil smell, oil in the spark plug wells causing misfires)
- Loose, damaged or incorrect gas cap (EVAP leak codes)
How to fix it — step by step
- Have the exact codes read with a BMW-capable scanner and write them down - lean codes or misfire codes with a whistle point at the valve cover, and EVAP codes at the cap
- Tighten the gas cap until it clicks and drive several trips to exclude the free EVAP fix first
- Listen at idle for the high-pitched whistle from the top of the engine, then crack the oil filler cap open with the engine running; strong suction holding the cap, with the whistle changing, confirms the ruptured diaphragm
- Look and smell for the second fault on the same part: oil wetness along the exhaust side of the cover and a burning-oil smell mean the gasket has hardened; pull a coil and check the plug wells for oil if misfire codes are stored
- Access is from the top: remove the acoustic engine cover, braces and ignition coils to reach the cover's perimeter bolts, noting the high-pressure fuel pump and lines also come off and the fuel system must be depressurized first
- Replace the valve cover assembly with a new gasket and new single-use bolts, torqued from the middle outward, then clear the codes and verify the whistle, smoke and light are gone → Shop the valve cover assembly at Amazon → Shop the valve cover gasket at Amazon
Did that fix it?
Worked through the steps? Say where you landed - it pinpoints what to do next.
Good - you're done. If it comes back, the causes at the top of this page are where to look first.
Then the likely broken part is the valve cover assembly.
Shop the valve cover assembly at Amazon
Also tied to this fault: valve cover gasket - Shop at Amazon; spark plugs - Shop at Amazon; gas cap - Shop at Amazon
Parts that commonly fix it
- valve cover assemblyShop at Amazon
- valve cover gasket$15–$80Shop at Amazon
- spark plugs$25–$100Shop at Amazon
- gas cap$10–$35Shop at Amazon
- Tools for this job, if you need them$40–$190
Typical ranges, checked Nov 2026. Your model’s exact part can land outside them.
What fixed yours?
Fixed this on your machine? Tap what did it - reports from owners set the percentages on this page.
Source: manufacturer / repair documentation. Codes can vary by model — confirm against your manual.
Manual & model number
Working on a specific model? The official BMW manual is on BMW's support site — you'll need your model number.
Find your model number in the owner's manual and on the driver-door jamb label. It's the key to the right manual pages and the right parts.